(self, *inputs, **kwargs)
| 54 | self.decoder_cuda_graph_created = True |
| 55 | |
| 56 | def decode(self, *inputs, **kwargs): |
| 57 | if self.enable_cuda_graph: |
| 58 | if self.decoder_cuda_graph_created: |
| 59 | outputs = self._graph_replay_decoder(*inputs, **kwargs) |
| 60 | else: |
| 61 | self._create_cuda_graph_decoder(*inputs, **kwargs) |
| 62 | outputs = self._graph_replay_decoder(*inputs, **kwargs) |
| 63 | return outputs |
| 64 | else: |
| 65 | return self._decode(*inputs, **kwargs) |
| 66 | |
| 67 | def _graph_replay_encoder(self, *inputs, **kwargs): |
| 68 | for i in range(len(inputs)): |