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

Method set_module_trace_info

imperative/python/src/tensor.cpp:638–642  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

636}
637
638void TensorWrapper::set_module_trace_info(PyObject* obj) {
639 // TODO: erase when obj == nullptr
640 ModuleTraceTransformation::module_trace_info_map[m_tensor->data()] =
641 py::reinterpret_borrow<py::object>(obj);
642}
643
644void TensorWrapper::_set_format(PyObject* dest) {
645 auto py_dest = py::reinterpret_borrow<py::object>(dest);

Callers

nothing calls this directly

Calls 1

dataMethod · 0.45

Tested by

no test coverage detected