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

Function SetDefaultSessionId

oneflow/core/framework/session_util.cpp:32–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30}
31
32Maybe<void> SetDefaultSessionId(int64_t val) {
33 std::vector<int64_t>* ids = RegsiteredSessionIds();
34 ids->emplace_back(val);
35 return Maybe<void>::Ok();
36}
37
38} // namespace
39

Callers

nothing calls this directly

Calls 2

RegsiteredSessionIdsFunction · 0.85
emplace_backMethod · 0.45

Tested by

no test coverage detected