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

Method cast

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

Source from the content-addressed store, hash-verified

196
197 template <typename TValue>
198 inline std::enable_if_t<TValue::is_primitive, const TValue&> cast() const {
199 return cast(PrimitiveType<TValue>::instance);
200 }
201
202 template <typename TValue>
203 inline std::enable_if_t<TValue::is_primitive, const TypedValueRef<TValue>&> as_ref()

Callers 15

trace_inputMethod · 0.45
apply_get_attrMethod · 0.45
apply_opMethod · 0.45
apply_get_attrMethod · 0.45
apply_transformationMethod · 0.45
apply_transformationMethod · 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

Calls 1

castFunction · 0.85

Tested by

no test coverage detected