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