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

Method as_tensor_nd

imperative/python/src/tensor.cpp:218–222  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

216 HostStorage::ref_t storage;
217
218 HostTensorND as_tensor_nd() const {
219 HostTensorND ret(CompNode::default_cpu(), shape.as_tensor_shape(), dtype);
220 ret.only_reset_raw_storage(*storage);
221 return ret;
222 }
223};
224
225template <typename seq_type, typename ctype>

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected