| 96 | } |
| 97 | |
| 98 | void 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 | |
| 106 | TensorSanityCheck::TensorSanityCheck() { |
| 107 | m_checker = std::make_unique<TensorSanityCheckImpl>(); |