MCPcopy Create free account
hub / github.com/NVIDIA/TensorRT / __enter__

Method __enter__

tools/Polygraphy/polygraphy/backend/base/runner.py:56–61  ·  view source on GitHub ↗

Activate the runner for inference. For example, this may involve allocating CPU or GPU memory.

(self)

Source from the content-addressed store, hash-verified

54 """bool: Whether this runner has been activated, either via context manager, or by calling ``activate()``."""
55
56 def __enter__(self):
57 """
58 Activate the runner for inference. For example, this may involve allocating CPU or GPU memory.
59 """
60 self.activate()
61 return self
62
63 def __exit__(self, exc_type, exc_value, traceback):
64 """

Callers

nothing calls this directly

Calls 1

activateMethod · 0.95

Tested by

no test coverage detected