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

Method dev_tensor

lite/src/mge/tensor_impl.h:91–91  ·  view source on GitHub ↗

get device tensor

Source from the content-addressed store, hash-verified

89
90 //! get device tensor
91 std::shared_ptr<mgb::DeviceTensorND> dev_tensor() const { return m_dev_tensor; }
92
93 //! copy from mgb tensor
94 void copy_from_mge_tensor(const mgb::DeviceTensorND& dv);

Callers 2

TESTFunction · 0.45

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.36