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

Method on_comp_node_finalize

imperative/src/impl/physical_tensor.cpp:458–462  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

456
457 struct Guard final : CompNodeDepedentObject {
458 std::shared_ptr<void> on_comp_node_finalize() override {
459 MGB_LOCK_GUARD(mtx);
460 inst.reset();
461 return {};
462 }
463 };
464
465 static std::optional<Guard> guard;

Callers

nothing calls this directly

Calls 1

resetMethod · 0.45

Tested by

no test coverage detected