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

Method shape

imperative/src/impl/value.cpp:53–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53TypedValueRef<ShapeValue> ValueRef::shape() const {
54 return imperative::apply(GetAttr(GetAttr::Shape), *this)[0].cast_ref<ShapeValue>();
55}
56
57TypedValueRef<DTypeValue> ValueRef::dtype() const {
58 return imperative::apply(GetAttr(GetAttr::DType), *this)[0].cast_ref<DTypeValue>();

Callers 14

TESTFunction · 0.45
TESTFunction · 0.45
TESTFunction · 0.45
makeFunction · 0.45
do_inferMethod · 0.45
as_tensorMethod · 0.45
ProfilerPluginMethod · 0.45
TensorMethod · 0.45
applyFunction · 0.45
reprMethod · 0.45

Calls 2

applyFunction · 0.70
GetAttrClass · 0.50

Tested by 4

TESTFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36