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

Method data

imperative/src/impl/transformations/trace.cpp:695–701  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

693}
694
695DeviceValue::ref_t CompiledTransformation::TracedValue::data() const {
696 trace_assert(m_accessor->data_getter, "data unreadable");
697 if (m_accessor->is_imperative()) {
698 return m_imperative_value.dev_tensor();
699 }
700 return DeviceValue::make(m_accessor->data_getter());
701}
702
703HostValue::ref_t CompiledTransformation::TracedValue::value() const {
704 trace_assert(m_accessor->value_getter, "value unreadable");

Callers 15

setup_algoFunction · 0.45
getMethod · 0.45
openMethod · 0.45
read_rawMethod · 0.45
apply_on_var_nodeFunction · 0.45
apply_on_physical_tensorFunction · 0.45
encodeFunction · 0.45
decodeFunction · 0.45
apply_get_attrMethod · 0.45

Calls 3

is_imperativeMethod · 0.80
makeFunction · 0.50
dev_tensorMethod · 0.45

Tested by

no test coverage detected