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

Function TEST_F

src/core/test/graph/eager_eval.cpp:184–190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

182} // anonymous namespace
183
184TEST_F(TestGraphEagerEval, APlusB) {
185 HostTensorGenerator<> gen;
186 auto make_graph = [](const SymbolVarArray& inputs) -> SymbolVarArray {
187 return {inputs[0] + inputs[1]};
188 };
189 run_eager_eval_test({gen({2, 8}), gen({2, 1})}, make_graph);
190}
191
192#if MGB_ENABLE_EXCEPTION
193TEST_F(TestGraphEagerEval, Exception) {

Callers

nothing calls this directly

Calls 15

gradFunction · 0.85
make_callback_copyFunction · 0.85
shared_from_thisMethod · 0.80
dist_byteMethod · 0.80
spanMethod · 0.80
value_neededMethod · 0.80
is_empty_allowedMethod · 0.80
resizeMethod · 0.80
makeFunction · 0.70
genFunction · 0.50
loadFunction · 0.50
reduce_sumFunction · 0.50

Tested by

no test coverage detected