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

Method to_string

imperative/python/src/transformation.h:78–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76 using PrimitiveValue::PrimitiveValue;
77
78 std::string to_string() const {
79 return pybind11::str((const pybind11::object&)*this).cast<std::string>();
80 }
81};
82
83} // namespace mgb::imperative::python

Callers 12

as_textMethod · 0.45
_get_resultMethod · 0.45
init_graph_rtFunction · 0.45
TensorWrapperMethod · 0.45
_detailMethod · 0.45
formatMethod · 0.45
init_tensorFunction · 0.45
get_dl_deviceMethod · 0.45
to_dlpackMethod · 0.45
_get_deviceFunction · 0.45
py_reprFunction · 0.45
py_dumpFunction · 0.45

Calls 1

strFunction · 0.85

Tested by

no test coverage detected