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

Method as_ref

imperative/src/include/megbrain/imperative/value.h:203–206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

201
202 template <typename TValue>
203 inline std::enable_if_t<TValue::is_primitive, const TypedValueRef<TValue>&> as_ref()
204 const {
205 return as_ref(PrimitiveType<TValue>::instance);
206 }
207
208 template <typename TValue>
209 inline std::enable_if_t<TValue::is_primitive, const TypedValueRef<TValue>&>

Callers 11

apply_transformationMethod · 0.80
apply_transformationMethod · 0.80
attachMethod · 0.80
unwrap_inputMethod · 0.80
identity_rule_helperFunction · 0.80
apply_transformationMethod · 0.80
apply_transformationMethod · 0.80
GradTransformationClass · 0.80
unwrapMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected