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

Method _var

imperative/python/src/tensor.cpp:756–761  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

754}
755
756PyObject* TensorWrapper::_var() {
757 TypedValueRef<NodeValue> value =
758 imperative::apply(GetVarVal(), m_tensor->data())[0].as_ref<NodeValue>();
759 auto* node = value->node();
760 return py::cast(node).release().ptr();
761}
762
763PyObject* TensorWrapper::_graph() {
764 TypedValueRef<NodeValue> value =

Callers

nothing calls this directly

Calls 7

GetVarValClass · 0.85
castFunction · 0.85
applyFunction · 0.50
dataMethod · 0.45
nodeMethod · 0.45
ptrMethod · 0.45
releaseMethod · 0.45

Tested by

no test coverage detected