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

Method numpy

imperative/src/impl/value.cpp:44–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44TypedValueRef<HostValue> ValueRef::numpy() const {
45 return imperative::apply(GetAttr(GetAttr::Value), *this)[0].cast_ref<HostValue>();
46}
47
48TypedValueRef<CompNodeValue> ValueRef::device() const {
49 return imperative::apply(GetAttr(GetAttr::Device), *this)[0]

Callers 9

dumpMethod · 0.45
compileMethod · 0.45
assert_tensor_equalMethod · 0.45
valueMethod · 0.45
reshape_ruleFunction · 0.45
broadcast_ruleFunction · 0.45
apply_transformationMethod · 0.45
apply_transformationMethod · 0.45
mainFunction · 0.45

Calls 2

applyFunction · 0.70
GetAttrClass · 0.50

Tested by

no test coverage detected