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

Function testPad

test/pad_borders.cpp:35–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33
34template<typename T>
35void testPad(const vector<T>& input, const dim4& inDims, const dim4& lbPadding,
36 const dim4& ubPadding, const af::borderType btype,
37 const vector<T>& gold, const dim4& outDims) {
38 SUPPORTED_TYPE_CHECK(T);
39 array in(inDims, input.data());
40 array out = af::pad(in, lbPadding, ubPadding, btype);
41 ASSERT_VEC_ARRAY_EQ(gold, outDims, out);
42}
43
44TYPED_TEST(PadBorders, Zero) {
45 testPad(vector<TypeParam>({

Callers 1

TYPED_TESTFunction · 0.85

Calls 1

padFunction · 0.50

Tested by

no test coverage detected