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

Function TEST_F

dnn/test/naive/record1.cpp:181–196  ·  view source on GitHub ↗

adaptive pooling

Source from the content-addressed store, hash-verified

179
180//! adaptive pooling
181TEST_F(NAIVE, ADAPTIVE_POOLING_FORWARD_RECORD) {
182 TaskRecordChecker<AdaptivePooling> checker(2);
183 auto args = adaptive_pooling::get_args();
184 using Format = param::AdaptivePooling::Format;
185 DType dtype = dtype::Float32();
186 for (auto&& arg : args) {
187 auto param = arg.param;
188 auto src = arg.ishape;
189 auto dst = arg.oshape;
190 param.format = Format::NCHW;
191 checker.set_epsilon(1e-2);
192 checker.set_param(param).set_dtype(0, dtype).set_dtype(1, dtype).exec(
193 TensorShapeArray{src, dst, {}});
194 break;
195 }
196}
197
198TEST_F(NAIVE, ADAPTIVE_POOLING_BACKWARD_RECORD) {
199 TaskRecordChecker<AdaptivePooling> checker(2);

Callers

nothing calls this directly

Calls 15

TensorLayoutClass · 0.85
swapFunction · 0.85
TensorShapeClass · 0.85
UniformFloatRNGClass · 0.85
get_args_for_cudaFunction · 0.85
set_dtypeMethod · 0.80
emplace_backMethod · 0.80
run_forward_testFunction · 0.70
run_backward_testFunction · 0.70

Tested by

no test coverage detected