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

Method scn_do_execute

src/opr/impl/misc.cpp:51–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49MEGDNN_OPR_INIT1(Argmax, "argmax")
50
51void 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
64MAKE_NODE_PROP_WITH_ZERO_SHAPE_1(Argmax, 0)
65

Callers

nothing calls this directly

Calls 15

comp_nodeFunction · 0.85
as_megdnnMethod · 0.80
backMethod · 0.80
extract_flowMethod · 0.80
infer_valueMethod · 0.80
copy_from_fixlayoutMethod · 0.80
paramFunction · 0.50
scn_do_executeFunction · 0.50
emptyMethod · 0.45
dev_tensorMethod · 0.45
layoutMethod · 0.45
execMethod · 0.45

Tested by

no test coverage detected