MCPcopy 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_rtFunction · 0.45
TensorWrapperMethod · 0.45
deviceMethod · 0.45
init_commonFunction · 0.45
get_dl_deviceMethod · 0.45
copy_intoMethod · 0.45
_get_deviceFunction · 0.45
get_res_by_refhdlFunction · 0.45
make_output_specMethod · 0.45
update_inputMethod · 0.45

Calls 1

deviceMethod · 0.45

Tested by

no test coverage detected