Add PyTorch profiler to support tracing of forward/backward calls (#1761)

* Add PyTorch profiler support

* Add support for wrapped code, fix linting errors

* Update docs
This commit is contained in:
Jonáš Kulhánek authored and GitHub committed 2023-04-18 20:29:09 +02:00
1 parent 37322ec453
commit ea14152ae6
5 files changed
+142 -18

No files matched your search

+1 -1
View File
@@ -184,7 +184,7 @@ class Trainer:
self.config.logging, max_iter=self.config.max_num_iterations, banner_messages=banner_messages
)
writer.put_config(name="config", config_dict=dataclasses.asdict(self.config), step=0)
profiler.setup_profiler(self.config.logging)
profiler.setup_profiler(self.config.logging, writer_log_path)
def setup_optimizers(self) -> Optimizers:
"""Helper to set up the optimizers