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

Method shape

imperative/src/impl/transformations/eval.cpp:21–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19}
20
21ShapeValue::ref_t InterpreterValue::shape() const {
22 if (!m_shape) {
23 m_shape = ShapeValue::make(
24 ValueShape::from(handle()->channel()->get_shape(handle()->handle())));
25 }
26 return m_shape;
27}
28
29ValueRefList InterpreterTransformation::apply_op(
30 const ApplyOp& apply_op, Span<ValueRef> inputs) {

Callers 15

apply_on_physical_tensorFunction · 0.45
apply_on_physical_tensorFunction · 0.45
megray_send_tensorFunction · 0.45
memory_forward_successFunction · 0.45
apply_on_physical_tensorFunction · 0.45
apply_on_physical_tensorFunction · 0.45
apply_on_physical_tensorFunction · 0.45
is_scalar_shapeFunction · 0.45
remove_axis_ruleFunction · 0.45
reduce_ruleFunction · 0.45
subtensor_ruleFunction · 0.45

Calls 5

fromFunction · 0.85
get_shapeMethod · 0.80
makeFunction · 0.50
channelMethod · 0.45
handleMethod · 0.45

Tested by

no test coverage detected