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

Method _set_format

imperative/python/src/tensor.cpp:644–648  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

642}
643
644void TensorWrapper::_set_format(PyObject* dest) {
645 auto py_dest = py::reinterpret_borrow<py::object>(dest);
646 auto format = py_dest.cast<std::string>();
647 m_tensor->set_format(format);
648}
649
650void TensorWrapper::_as_format(PyObject* dest) {
651 auto py_dest = py::reinterpret_borrow<py::object>(dest);

Callers 1

formatMethod · 0.80

Calls 1

set_formatMethod · 0.45

Tested by

no test coverage detected