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

Method _as_format

imperative/python/src/tensor.cpp:650–654  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

648}
649
650void TensorWrapper::_as_format(PyObject* dest) {
651 auto py_dest = py::reinterpret_borrow<py::object>(dest);
652 auto format = py_dest.cast<std::string>();
653 m_tensor->as_format(format);
654}
655
656void TensorWrapper::_set_name(PyObject* dest) {
657 auto py_dest = py::reinterpret_borrow<py::object>(dest);

Callers

nothing calls this directly

Calls 1

as_formatMethod · 0.80

Tested by

no test coverage detected