Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MegEngine/MegEngine
/ comp_node
Method
comp_node
imperative/python/src/tensor.h:54–54 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
52
53
inline DType dtype() { return *data().dtype(); }
54
inline CompNode comp_node() { return *data().device(); }
55
inline std::optional<ValueShape> shape() {
56
auto shape = data().shape();
57
if (!shape) {
Callers
15
init_graph_rt
Function · 0.45
TensorWrapper
Method · 0.45
device
Method · 0.45
init_common
Function · 0.45
get_dl_device
Method · 0.45
copy_into
Method · 0.45
_get_device
Function · 0.45
get_res_by_refhdl
Function · 0.45
make_output_spec
Method · 0.45
cross_compnode_model_detect
Method · 0.45
update_input
Method · 0.45
update_input_lite_tensors
Method · 0.45
Calls
1
device
Method · 0.45
Tested by
no test coverage detected