| 49 | MEGDNN_OPR_INIT1(Argmax, "argmax") |
| 50 | |
| 51 | void Argmax::scn_do_execute() { |
| 52 | if (input(0)->dev_tensor().empty()) { |
| 53 | mgb_assert( |
| 54 | input(0)->dev_tensor().layout().shape[param().axis] != 0, |
| 55 | "Argmax: expected reduction dim %d to be specified for empty input", |
| 56 | param().axis); |
| 57 | mgb_assert(output(0)->dev_tensor().empty()); |
| 58 | return; |
| 59 | } |
| 60 | mgb_assert(!output(0)->dev_tensor().empty()); |
| 61 | Super::scn_do_execute(); |
| 62 | } |
| 63 | |
| 64 | MAKE_NODE_PROP_WITH_ZERO_SHAPE_1(Argmax, 0) |
| 65 |
nothing calls this directly
no test coverage detected