(self)
| 102 | return self |
| 103 | |
| 104 | def __prepare_execution_contexts(self): |
| 105 | self._context = self.engine.create_execution_context() |
| 106 | assert self._context is not None, "Failed to create an execution context!" |
| 107 | with _scoped_stream() as stream: |
| 108 | self._context.set_optimization_profile_async(0, stream) |
| 109 | |
| 110 | @staticmethod |
| 111 | def from_serialized_engine(engine) -> Session: |
no test coverage detected