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

Method dtype

imperative/src/impl/value.cpp:57–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55}
56
57TypedValueRef<DTypeValue> ValueRef::dtype() const {
58 return imperative::apply(GetAttr(GetAttr::DType), *this)[0].cast_ref<DTypeValue>();
59}
60
61TypedValueRef<FormatValue> ValueRef::format() const {
62 return imperative::apply(GetFormat(), *this)[0].as_ref<FormatValue>();

Callers 13

TESTFunction · 0.45
make_backward_graphMethod · 0.45
as_tensorMethod · 0.45
apply_on_var_nodeFunction · 0.45
TensorMethod · 0.45
make_scalarMethod · 0.45
applyFunction · 0.45
reprMethod · 0.45
InputCallbackMethod · 0.45
OutputCallbackMethod · 0.45
NopCallbackMethod · 0.45

Calls 2

applyFunction · 0.70
GetAttrClass · 0.50

Tested by 1

TESTFunction · 0.36