MCPcopy Create free account
hub / github.com/Oneflow-Inc/oneflow / SetIdState

Method SetIdState

oneflow/core/framework/multi_client_session_context.cpp:221–228  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

219}
220
221void MultiClientSessionContext::SetIdState(const IdState& id_state) {
222 CHECK(Singleton<IDMgr>::Get() != nullptr);
223 CHECK(Singleton<TaskStreamIndexManager>::Get() != nullptr);
224 CHECK(Singleton<LazyJobBuildAndInferCtxMgr>::Get() != nullptr);
225 Singleton<IDMgr>::Get()->TryUpdateIdAndTaskIndex(&id_state);
226 Singleton<TaskStreamIndexManager>::Get()->TryUpdateTaskStreamIndex(id_state.stream_index_state_);
227 Singleton<LazyJobBuildAndInferCtxMgr>::Get()->TryUpdateJobIdCount(id_state.job_id_state_);
228}
229
230} // namespace oneflow

Callers 1

id_state.cppFile · 0.80

Calls 4

GetFunction · 0.85
TryUpdateJobIdCountMethod · 0.80

Tested by

no test coverage detected