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

Function value

src/core/impl/graph/cg_impl_partial.cpp:167–173  ·  view source on GitHub ↗

update value

Source from the content-addressed store, hash-verified

165
166 //! update value
167 void value(DeviceTensorND value) {
168 m_value.emplace(std::move(value));
169 if (!m_recorded_in_checker) {
170 ExecOrderChecker::get_from_graph(*owner_graph())
171 ->record_dev_tensor(&m_value);
172 }
173 }
174};
175MGB_DYN_TYPE_OBJ_FINAL_IMPL(ComputingGraphImpl::MultiPartCompiler::DeviceDataProvider);
176

Callers 4

convertFunction · 0.85
to_stringMethod · 0.85
on_watchMethod · 0.85
on_unwatchMethod · 0.85

Calls 2

record_dev_tensorMethod · 0.80
emplaceMethod · 0.45

Tested by

no test coverage detected