| 28 | namespace { |
| 29 | |
| 30 | Maybe<Scope> MakeDefaultScope() { |
| 31 | JobConfigProto config_proto; |
| 32 | config_proto.mutable_predict_conf(); |
| 33 | config_proto.set_job_name(""); |
| 34 | return MakeScope(config_proto, *JUST(Device::New("cpu"))); |
| 35 | } |
| 36 | |
| 37 | std::list<std::shared_ptr<Scope>>* ThreadLocalScopeStack() { |
| 38 | thread_local static std::list<std::shared_ptr<Scope>> scope_stack{CHECK_JUST(MakeDefaultScope())}; |
no test coverage detected