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

Method OnSchedulerThread

oneflow/core/vm/virtual_machine_engine.cpp:346–348  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

344}
345
346bool VirtualMachineEngine::OnSchedulerThread(const Stream& stream) {
347 return stream.on_scheduler_thread() || pthread_fork::IsForkedSubProcess();
348}
349
350// Barrier instructions are run after all previous lively instructions.
351//

Callers

nothing calls this directly

Calls 2

IsForkedSubProcessFunction · 0.85
on_scheduler_threadMethod · 0.80

Tested by

no test coverage detected