MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / TEST_P

Function TEST_P

test/convolve.cpp:884–894  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

882 testNameGenerator<Conv2ConsistencyTest>);
883
884TEST_P(Conv2ConsistencyTest, RandomConvolutions) {
885 conv2_strided_params params = GetParam();
886 array signal = randn(params.signal_sz_);
887 array filter = randn(params.filt_sz_);
888
889 array out_native = convolve2(signal, filter);
890 array out = convolve2NN(signal, filter, params.stride_, params.padding_,
891 params.dilation_);
892
893 ASSERT_ARRAYS_NEAR(out_native, out, 2e-5);
894}
895
896template<typename T>
897float tolerance();

Callers

nothing calls this directly

Calls 3

randnFunction · 0.85
convolve2NNFunction · 0.85
convolve2Function · 0.50

Tested by

no test coverage detected