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

Method device

imperative/src/impl/value.cpp:48–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48TypedValueRef<CompNodeValue> ValueRef::device() const {
49 return imperative::apply(GetAttr(GetAttr::Device), *this)[0]
50 .cast_ref<CompNodeValue>();
51}
52
53TypedValueRef<ShapeValue> ValueRef::shape() const {
54 return imperative::apply(GetAttr(GetAttr::Shape), *this)[0].cast_ref<ShapeValue>();

Callers 11

trace_inputMethod · 0.45
on_unregisterMethod · 0.45
reduce_ruleFunction · 0.45
get_var_shape_ruleFunction · 0.45
reshape_ruleFunction · 0.45
broadcast_ruleFunction · 0.45
apply_transformationMethod · 0.45
apply_transformationMethod · 0.45
bn1d_ruleFunction · 0.45

Calls 2

applyFunction · 0.70
GetAttrClass · 0.50

Tested by

no test coverage detected