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

Method is

imperative/src/impl/value.cpp:36–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35
36bool ValueRef::is(const IType& type) const {
37 return this->storage()->type() == type;
38}
39
40TypedValueRef<DeviceValue> ValueRef::dev_tensor() const {
41 return imperative::apply(GetAttr(GetAttr::Data), *this)[0].cast_ref<DeviceValue>();

Callers 9

pyseq2hvalFunction · 0.45
pyobj2hvalFunction · 0.45
_is_external_valueMethod · 0.45
apply_transformationMethod · 0.45
trace_inputMethod · 0.45
apply_get_attrMethod · 0.45
apply_transformationMethod · 0.45
apply_transformationMethod · 0.45
on_unregisterMethod · 0.45

Calls 2

storageMethod · 0.80
typeMethod · 0.45

Tested by

no test coverage detected