You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

cond_take.cpp 370 B

12345678910111213
  1. #include "./helper.h"
  2. #include "megbrain/imperative/ops/autogen.h"
  3. using namespace mgb;
  4. using namespace imperative;
  5. TEST(TestImperative, CondTake) {
  6. auto op = imperative::CondTake::make();
  7. auto msk = HostTensorGenerator<dtype::Bool>()({42});
  8. OprChecker(op).run({TensorShape{42}, *msk});
  9. }
  10. // vim: syntax=cpp.doxygen foldmethod=marker foldmarker=f{{{,f}}}