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

Function TEST

imperative/src/test/imperative.cpp:18–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16using namespace imperative;
17
18TEST(TestImperative, APlusB) {
19 auto op = OprAttr::make("Elemwise");
20 auto&& attr = op->cast_final_safe<OprAttr>();
21 using Param = opr::Elemwise::Param;
22 Param param{Param::Mode::ADD};
23 attr.param.write_pod(param);
24 OprChecker(op).run({TensorShape{42}, TensorShape{42}});
25}
26
27TEST(TestImperative, Convolution) {
28 auto op = OprAttr::make("ConvolutionV2");

Callers

nothing calls this directly

Calls 11

OprCheckerClass · 0.85
run_apply_on_var_nodeMethod · 0.80
run_graphFunction · 0.70
makeFunction · 0.50
loadFunction · 0.50
write_podMethod · 0.45
runMethod · 0.45
activateMethod · 0.45
push_backMethod · 0.45
sizeMethod · 0.45
shapeMethod · 0.45

Tested by

no test coverage detected