Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MegEngine/MegEngine
/ array
Function
array
imperative/src/test/helper.cpp:57–60 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
55
}
56
57
py::array array(const Tensor& x) {
58
PyEnv::get();
59
return py::cast(x).attr(
"numpy"
)();
60
}
61
62
py::array array(const HostTensorND& x) {
63
return array(*Tensor::make(x));
Callers
1
print
Function · 0.85
Calls
4
get
Function · 0.85
cast
Function · 0.85
attr
Method · 0.80
make
Function · 0.50
Tested by
no test coverage detected