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

Method _graph

imperative/python/src/tensor.cpp:763–768  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

761}
762
763PyObject* TensorWrapper::_graph() {
764 TypedValueRef<NodeValue> value =
765 imperative::apply(GetVarVal(), m_tensor->data())[0].as_ref<NodeValue>();
766 auto* graph = value->graph();
767 return py::cast(graph).release().ptr();
768}
769
770PyObject* TensorWrapper::_external_obj() {
771 TypedValueRef<PyobjectValue> value =

Callers

nothing calls this directly

Calls 7

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

Tested by

no test coverage detected