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

Method disable

imperative/src/impl/tensor_sanity_check.cpp:98–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96}
97
98void TensorSanityCheck::disable() {
99 for (auto&& hook : m_checker->hook_list) {
100 std::get<0>(hook)->apply_on_physical_tensor = std::move(*std::get<1>(hook));
101 }
102 m_checker->tensor2chksum.clear();
103 m_checker->hook_list.clear();
104}
105
106TensorSanityCheck::TensorSanityCheck() {
107 m_checker = std::make_unique<TensorSanityCheckImpl>();

Callers

nothing calls this directly

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected