(self, *inputs, **kwargs)
| 33 | return self.static_output |
| 34 | |
| 35 | def forward(self, *inputs, **kwargs): |
| 36 | if self.enable_cuda_graph: |
| 37 | if self.cuda_graph_created: |
| 38 | outputs = self._graph_replay(*inputs, **kwargs) |
| 39 | else: |
| 40 | self._create_cuda_graph(*inputs, **kwargs) |
| 41 | outputs = self._graph_replay(*inputs, **kwargs) |
| 42 | return outputs |
| 43 | else: |
| 44 | return self._forward(*inputs, **kwargs) |
| 45 | |
| 46 | def _create_cuda_graph(self, *inputs, **kwargs): |
| 47 | # warmup to create the workspace and cublas handle |
nothing calls this directly
no test coverage detected