MCPcopy Create free account
hub / github.com/apache/tvm / __del__

Method __del__

python/tvm/support/popen_pool.py:376–385  ·  view source on GitHub ↗

Destructor. Note ---- Called during garbage collection. This may be called later than expected. Always call shutdown() explicitly to avoid deadlocks.

(self)

Source from the content-addressed store, hash-verified

374 raise TypeError("initializer must be callable for PopenPoolExecutor")
375
376 def __del__(self):
377 """Destructor.
378
379 Note
380 ----
381 Called during garbage collection. This may be called later than expected.
382 Always call shutdown() explicitly to avoid deadlocks.
383 """
384 if not self._shutdown:
385 self.shutdown(wait=True)
386
387 def shutdown(self, wait=True):
388 """Shutdown the executor and clean up resources.

Callers

nothing calls this directly

Calls 1

shutdownMethod · 0.95

Tested by

no test coverage detected