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

Method cmp_src

dnn/test/rocm/chanwise_convolution.cpp:165–170  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163 }
164
165 void cmp_src() {
166 Tensor<> src0_cpu(handle_cpu, lsrc), src1_cpu(handle_cpu, lsrc);
167 megdnn_memcpy_D2H(handle, src0_cpu.ptr(), src0->ptr(), lsrc.span().dist_byte());
168 megdnn_memcpy_D2H(handle, src1_cpu.ptr(), src1->ptr(), lsrc.span().dist_byte());
169 src0_cpu.check_with(src1_cpu);
170 }
171
172 void cmp_flt() {
173 Tensor<> flt0_cpu(handle_cpu, lflt0), flt1_cpu(handle_cpu, lflt1);

Callers 1

TEST_FFunction · 0.45

Calls 3

dist_byteMethod · 0.80
spanMethod · 0.80
ptrMethod · 0.45

Tested by

no test coverage detected