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

Method dev_tensor

imperative/src/impl/value.cpp:40–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38}
39
40TypedValueRef<DeviceValue> ValueRef::dev_tensor() const {
41 return imperative::apply(GetAttr(GetAttr::Data), *this)[0].cast_ref<DeviceValue>();
42}
43
44TypedValueRef<HostValue> ValueRef::numpy() const {
45 return imperative::apply(GetAttr(GetAttr::Value), *this)[0].cast_ref<HostValue>();

Callers 15

_dev_tensorMethod · 0.45
init_tensorFunction · 0.45
to_dlpackMethod · 0.45
runMethod · 0.45
TESTFunction · 0.45
TESTFunction · 0.45
TESTFunction · 0.45
run_graphFunction · 0.45
check_rng_basicFunction · 0.45
makeFunction · 0.45

Calls 2

applyFunction · 0.70
GetAttrClass · 0.50

Tested by 15

runMethod · 0.36
TESTFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36
run_graphFunction · 0.36
check_rng_basicFunction · 0.36
dev_ptrFunction · 0.36
TESTFunction · 0.36
scn_do_executeFunction · 0.36