| 98 | } |
| 99 | |
| 100 | BackwardPassScopeGuard::BackwardPassScopeGuard() { |
| 101 | if (LazyMode::is_enabled()) { |
| 102 | const auto& scope = CHECK_JUST(GetCurrentScope()); |
| 103 | if (scope) { |
| 104 | backward_pass_scope_ = CHECK_JUST(FindOrCreateBackwardPassScope(scope)); |
| 105 | CHECK_JUST(ThreadLocalScopeStackPush(backward_pass_scope_)); |
| 106 | } |
| 107 | } |
| 108 | } |
| 109 | |
| 110 | BackwardPassScopeGuard::BackwardPassScopeGuard(const std::shared_ptr<Scope>& scope) { |
| 111 | if (scope && LazyMode::is_enabled()) { |
nothing calls this directly
no test coverage detected