Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MegEngine/MegEngine
/ host_tensor
Method
host_tensor
lite/src/mge/tensor_impl.h:88–88 ·
view source on GitHub ↗
get host tensor
Source
from the content-addressed store, hash-verified
86
87
//! get host tensor
88
std::shared_ptr<mgb::HostTensorND> host_tensor() const { return m_host_tensor; }
89
90
//! get device tensor
91
std::shared_ptr<mgb::DeviceTensorND> dev_tensor() const { return m_dev_tensor; }
Callers
2
TEST
Function · 0.80
mgb_lar
Function · 0.80
Calls
no outgoing calls
Tested by
2
TEST
Function · 0.64
mgb_lar
Function · 0.64