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

Method as

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

Source from the content-addressed store, hash-verified

400
401template <typename TValue>
402inline const TValue* ValueRef::as(const Type<TValue>& type) const {
403 static_assert(std::is_base_of_v<Value, TValue>);
404 return static_cast<const TValue*>(as((const IType&)type));
405}
406
407template <typename TValue>
408inline const TValue& ValueRef::cast(const Type<TValue>& type) const {

Callers 6

apply_complex_maskMethod · 0.45
apply_complex_realMethod · 0.45
apply_transformationMethod · 0.45
unwrap_varMethod · 0.45
unwrapMethod · 0.45
apply_transformationMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected