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

Method format

imperative/src/impl/value.cpp:61–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61TypedValueRef<FormatValue> ValueRef::format() const {
62 return imperative::apply(GetFormat(), *this)[0].as_ref<FormatValue>();
63}
64
65TypedValueRef<StringValue> ValueRef::name() const {
66 return imperative::apply(GetName(), *this)[0].cast_ref<StringValue>();

Callers 15

init_output_tensorMethod · 0.45
toMethod · 0.45
dimshuffle_ruleFunction · 0.45
reshape_ruleFunction · 0.45
broadcast_ruleFunction · 0.45
subtensor_ruleFunction · 0.45
indexing_ruleFunction · 0.45
setsubtensor_ruleFunction · 0.45
get_inputs_formatFunction · 0.45
unify_inputs_formatFunction · 0.45
elemwise_ruleFunction · 0.45

Calls 2

GetFormatClass · 0.85
applyFunction · 0.70

Tested by

no test coverage detected