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

Function TEST

imperative/src/test/cond_take.cpp:7–11  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5using namespace imperative;
6
7TEST(TestImperative, CondTake) {
8 auto op = imperative::CondTake::make();
9 auto msk = HostTensorGenerator<dtype::Bool>()({42});
10 OprChecker(op).run({TensorShape{42}, *msk});
11}
12
13// vim: syntax=cpp.doxygen foldmethod=marker foldmarker=f{{{,f}}}

Callers

nothing calls this directly

Calls 3

OprCheckerClass · 0.85
makeFunction · 0.50
runMethod · 0.45

Tested by

no test coverage detected