mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-21 15:15:43 +08:00
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:
1 parent
37322ec453
commit
ea14152ae6
5 files changed
+142
-18
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user