MCPcopy 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
57py::array array(const Tensor& x) {
58 PyEnv::get();
59 return py::cast(x).attr("numpy")();
60}
61
62py::array array(const HostTensorND& x) {
63 return array(*Tensor::make(x));

Callers 1

printFunction · 0.85

Calls 4

getFunction · 0.85
castFunction · 0.85
attrMethod · 0.80
makeFunction · 0.50

Tested by

no test coverage detected