Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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_text
Method · 0.45
_get_result
Method · 0.45
init_graph_rt
Function · 0.45
TensorWrapper
Method · 0.45
_detail
Method · 0.45
format
Method · 0.45
init_tensor
Function · 0.45
get_dl_device
Method · 0.45
to_dlpack
Method · 0.45
_get_device
Function · 0.45
py_repr
Function · 0.45
py_dump
Function · 0.45
Calls
1
str
Function · 0.85
Tested by
no test coverage detected