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

Method unwrap_input

imperative/src/impl/transformations/format.cpp:69–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67}
68
69inline ValueRef FormatTransformation::unwrap_input(const ValueRef& input) const {
70 if (auto format_input = input.as_ref(m_value_type)) {
71 return format_input->value();
72 } else {
73 return input;
74 }
75}
76
77inline ValueRefList FormatTransformation::unwrap_inputs(
78 const Span<ValueRef>& inputs) const {

Callers 3

reshape_ruleFunction · 0.80
broadcast_ruleFunction · 0.80
setsubtensor_ruleFunction · 0.80

Calls 2

as_refMethod · 0.80
valueMethod · 0.45

Tested by

no test coverage detected