MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / validate_zero_padding

Function validate_zero_padding

tests/validation/NEON/GEMM.cpp:83–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81/** Zero padding test */
82template <typename FunctionType>
83bool validate_zero_padding(unsigned int dim0_value, unsigned int dim1_value)
84{
85 const TensorShape in_shape(dim0_value, dim1_value);
86 TensorInfo in(in_shape, 1, DataType::U32);
87 TensorInfo dst;
88
89 ARM_COMPUTE_EXPECT(in.is_resizable(), framework::LogLevel::ERRORS);
90
91 // Validate zero-padding
92 FunctionType func;
93
94 func.configure(&in, &dst);
95
96 return in.padding().empty();
97}
98
99/* Zero padding test for GEMM kernels */
100bool validate_gemm_zero_padding(const TensorShape shape0, const TensorShape shape1)

Callers

nothing calls this directly

Calls 4

is_resizableMethod · 0.45
configureMethod · 0.45
emptyMethod · 0.45
paddingMethod · 0.45

Tested by

no test coverage detected