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

Method __enter__

tools/Polygraphy/tests/test_examples.py:169–174  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

167 os.remove(artifact)
168
169 def __enter__(self):
170 self._remove_artifacts(must_exist=False)
171
172 self.original_files = self._get_file_list()
173 readme = os.path.join(self.path, "README.md")
174 return load_command_blocks_from_readme(readme)
175
176 def run(self, cmd_block, sandboxed_install_run):
177 # Remove whitespace args and escaped newlines

Callers

nothing calls this directly

Calls 3

_remove_artifactsMethod · 0.95
_get_file_listMethod · 0.95

Tested by

no test coverage detected