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

Method value_fetched

imperative/src/impl/physical_tensor.cpp:725–728  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

723}
724
725bool Tensor::value_fetched() {
726 MGB_LOCK_GUARD(m_value_mtx);
727 return m_value.layout().ndim != 0;
728}
729
730const HostTensorND& Tensor::get_value() {
731 fetch_value();

Callers 1

wait_tensorMethod · 0.80

Calls 1

layoutMethod · 0.45

Tested by

no test coverage detected