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

Method is

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

Source from the content-addressed store, hash-verified

186
187 template <typename TValue>
188 inline std::enable_if_t<TValue::is_primitive, bool> is() const {
189 return is(PrimitiveType<TValue>::instance);
190 }
191
192 template <typename TValue>
193 inline std::enable_if_t<TValue::is_primitive, const TValue*> as() const {

Callers 9

apply_transformationMethod · 0.45
unwrapMethod · 0.45
is_grad_valueMethod · 0.45
unwrapMethod · 0.45
unwrapMethod · 0.45
unwrapMethod · 0.45
unwrapMethod · 0.45
apply_transformationMethod · 0.45
unwrapMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected