(self)
| 559 | return self.static_output |
| 560 | |
| 561 | def model_times(self): |
| 562 | assert self.model_profile_enabled, "model profiling is not enabled" |
| 563 | model_times = self._model_times |
| 564 | if self._config.enable_cuda_graph and len(self._model_times) == 0: |
| 565 | raise ValueError("Model times are empty and cuda graph is enabled. If " |
| 566 | "this is a GPT-style model this combo is not supported. If this is a " |
| 567 | "BERT-style model this is a bug, please report it. " |
| 568 | f"Model type is: {type(self.module)}") |
| 569 | self._model_times = [] |
| 570 | return model_times |
| 571 | |
| 572 | def _module_match(self, module): |
| 573 | for policy in generic_policies: |
nothing calls this directly
no outgoing calls
no test coverage detected