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

Method get_ready_event

imperative/src/impl/physical_tensor.cpp:758–763  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

756}
757
758uint64_t Tensor::get_ready_event() {
759 if (m_produced_at == 0) {
760 m_produced_at = record_event(comp_node());
761 }
762 return m_produced_at;
763}
764
765bool Tensor::storage_is_unique() {
766 return m_blob.unique() && m_blob->storage_is_unique();

Callers 2

apply_on_physical_tensorFunction · 0.80

Calls 2

comp_nodeFunction · 0.85
record_eventFunction · 0.70

Tested by

no test coverage detected