| 7 | using namespace test; |
| 8 | |
| 9 | TEST_F(CUDA, COND_TAKE) { |
| 10 | auto opr_naive = handle_naive()->create_operator<CondTake>(); |
| 11 | auto opr_cuda = handle_cuda()->create_operator<CondTake>(); |
| 12 | |
| 13 | size_t tot_size = 0; |
| 14 | for (auto&& i : CondTakeTestcase::make()) { |
| 15 | auto ret_naive = i.run(opr_naive.get()), ret_cuda = i.run(opr_cuda.get()); |
| 16 | MEGDNN_ASSERT_TENSOR_EQ(*ret_naive.first, *ret_cuda.first); |
| 17 | MEGDNN_ASSERT_TENSOR_EQ(*ret_naive.second, *ret_cuda.second); |
| 18 | tot_size += ret_naive.first->layout.total_nr_elems(); |
| 19 | } |
| 20 | ASSERT_GT(tot_size, (size_t)0); |
| 21 | } |
| 22 | |
| 23 | // vim: syntax=cpp.doxygen |
nothing calls this directly
no test coverage detected