mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-20 06:35:36 +08:00
pass grad scaler from trainer to pipeline (#1996)
* pass grad sclaer from trainer to pipeline * lint * add grad scaler to arg doc --------- Co-authored-by: Matthew Tancik <tancik@berkeley.edu>
This commit is contained in:
1 parent
f9a88c5aa2
commit
a8bce87ada
3 files changed
+13
-2
No files matched your search
@@ -148,7 +148,11 @@ class Trainer:
|
||||
'inference': does not load any dataset into memory
|
||||
"""
|
||||
self.pipeline = self.config.pipeline.setup(
|
||||
device=self.device, test_mode=test_mode, world_size=self.world_size, local_rank=self.local_rank
|
||||
device=self.device,
|
||||
test_mode=test_mode,
|
||||
world_size=self.world_size,
|
||||
local_rank=self.local_rank,
|
||||
grad_scaler=self.grad_scaler,
|
||||
)
|
||||
self.optimizers = self.setup_optimizers()
|
||||
|
||||
|
||||
Reference in new issue
Block a user