(self, *inputs, **kwargs)
| 117 | return self.static_output |
| 118 | |
| 119 | def forward(self, *inputs, **kwargs): |
| 120 | if self.enable_cuda_graph: |
| 121 | if self.cuda_graph_created: |
| 122 | outputs = self._graph_replay(*inputs, **kwargs) |
| 123 | else: |
| 124 | self._create_cuda_graph(*inputs, **kwargs) |
| 125 | outputs = self._graph_replay(*inputs, **kwargs) |
| 126 | return outputs |
| 127 | else: |
| 128 | return self._forward(*inputs, **kwargs) |
| 129 | |
| 130 | def _create_cuda_graph(self, *inputs, **kwargs): |
| 131 | # warmup to create the workspace and cublas handle |
nothing calls this directly
no test coverage detected