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

Function TEST_F

dnn/test/fallback/elemwise.cpp:18–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16 elemwise::run_test<TypeParam>(this->handle());
17}
18TEST_F(FALLBACK, ELEMWISE_RECORD) {
19 TaskRecordChecker<Elemwise> checker{1};
20 checker.set_param({Elemwise::Mode::ADD});
21 checker.set_dtype(0, dtype::Float32());
22 checker.set_dtype(1, dtype::Float32());
23 checker.set_dtype(2, dtype::Float32());
24 UniformIntRNG rng{-100, 100};
25 checker.set_rng(0, &rng);
26 checker.set_rng(1, &rng);
27 checker.set_rng(2, &rng);
28 checker.execs({{10, 10, 32}, {10, 10, 32}, {}});
29}
30
31TEST_F(FALLBACK, ELEMWISE_FORWARD_TERNARY) {
32 using Mode = ElemwiseForward::Param::Mode;

Callers

nothing calls this directly

Calls 12

clockClass · 0.85
set_dtypeMethod · 0.80
dist_byteMethod · 0.80
spanMethod · 0.80
runFunction · 0.50
execsMethod · 0.45
paramMethod · 0.45
execMethod · 0.45
tensorndMethod · 0.45
getMethod · 0.45
layoutMethod · 0.45
to_stringMethod · 0.45

Tested by

no test coverage detected