(self, *inputs, **kwargs)
| 96 | self.encoder_cuda_graph_created = True |
| 97 | |
| 98 | def encode(self, *inputs, **kwargs): |
| 99 | if self.enable_cuda_graph: |
| 100 | if self.encoder_cuda_graph_created: |
| 101 | outputs = self._graph_replay_encoder(*inputs, **kwargs) |
| 102 | else: |
| 103 | self._create_cuda_graph_encoder(*inputs, **kwargs) |
| 104 | outputs = self._graph_replay_encoder(*inputs, **kwargs) |
| 105 | return outputs |
| 106 | else: |
| 107 | return self._encode(*inputs, **kwargs) |
| 108 | |
| 109 | def _graph_replay(self, *inputs, **kwargs): |
| 110 | for i in range(len(inputs)): |
no test coverage detected