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

Method ~VirtualMachine

oneflow/core/vm/virtual_machine.cpp:208–213  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

206}
207
208VirtualMachine::~VirtualMachine() {
209 if (!threads_closed_) { CHECK_JUST(CloseVMThreads()); }
210 RunMainThreadPendingTasks();
211 CHECK(engine_->SchedulerEmpty());
212 engine_.Reset();
213}
214
215std::function<Maybe<bool>()> VirtualMachine::GetPredicatorNoMoreInstructionsFinished() {
216 auto last_total_erased = std::make_shared<size_t>(0);

Callers

nothing calls this directly

Calls 2

SchedulerEmptyMethod · 0.80
ResetMethod · 0.45

Tested by

no test coverage detected