MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / run_pooling_check

Function run_pooling_check

dnn/test/arm_common/pooling_multi_thread.cpp:116–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114}
115
116void run_pooling_check(
117 Handle* handle, std::vector<std::pair<param::Pooling, TensorShapeArray>> args,
118 bool is_int8) {
119 Checker<Pooling> checker(handle);
120 UniformIntRNG rng_int8{INT8_MIN >> 1, INT8_MAX >> 1};
121 UniformIntRNG rng_fp32{-10, 10};
122 if (is_int8) {
123 checker.set_dtype(0, dtype::QuantizedS8(1.1f));
124 checker.set_rng(0, &rng_int8);
125 } else {
126 checker.set_rng(0, &rng_fp32);
127 }
128 for (auto arg : args) {
129 checker.set_param(arg.first).exec(arg.second);
130 }
131}
132
133TEST_F(ARM_COMMON_MULTI_THREADS, POOLING_NCHW44_FP32) {
134 for (auto filter : {2, 3, 4, 5})

Callers 1

TEST_FFunction · 0.70

Calls 2

set_dtypeMethod · 0.80
execMethod · 0.45

Tested by

no test coverage detected