(self)
| 156 | save_engine(engine, path=self.engine_path) |
| 157 | |
| 158 | def load(self): |
| 159 | logger.warning(f"Loading TensorRT engine: {self.engine_path}") |
| 160 | self.engine = engine_from_bytes(bytes_from_path(self.engine_path)) |
| 161 | |
| 162 | def activate(self): |
| 163 | self.context = self.engine.create_execution_context() |
no outgoing calls