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

Function apply

imperative/src/impl/dispatch.cpp:62–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60} // namespace
61
62ValueRefList apply(const Operator& op, Span<ValueRef> inputs) {
63 static bool debug = MGB_GETENV("MGE_LOG_OP_DISPATCH");
64 if (mgb_unlikely(debug)) {
65 return apply_debug(op, inputs);
66 } else {
67 return apply_release(op, inputs);
68 }
69}
70
71ValueRefList apply(const OpDef& def, Span<ValueRef> inputs) {
72 return imperative::apply(ApplyOp{def}, inputs);

Callers 15

dev_tensorMethod · 0.70
numpyMethod · 0.70
deviceMethod · 0.70
shapeMethod · 0.70
dtypeMethod · 0.70
formatMethod · 0.70
nameMethod · 0.70
is_scalarMethod · 0.70
handle_idMethod · 0.70
deduce_layoutsMethod · 0.70
record_eventFunction · 0.50
wait_eventFunction · 0.50

Calls 15

apply_releaseFunction · 0.85
fromFunction · 0.85
CreateTensorClass · 0.85
storageMethod · 0.80
makeFunction · 0.70
beginMethod · 0.45
endMethod · 0.45
get_valueMethod · 0.45
dev_tensorMethod · 0.45
is_contiguousMethod · 0.45
layoutMethod · 0.45
is_scalarMethod · 0.45

Tested by 15

test_gaussian_opFunction · 0.40
test_uniform_opFunction · 0.40
test_gamma_opFunction · 0.40
test_beta_opFunction · 0.40
test_poisson_opFunction · 0.40
test_multinomial_opFunction · 0.40
test_exponential_opFunction · 0.40
fwdFunction · 0.40
forwardMethod · 0.40
forwardMethod · 0.40