mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-06 15:59:16 +08:00
Mps fix (#2436)
* mps bugfix * removed docs change * Double quotes --------- Co-authored-by: Brent Yi <yibrenth@gmail.com>
This commit is contained in:
1 parent
43a7da36a5
commit
49503c2175
1 file changed
+1
@@ -464,6 +464,7 @@ class Trainer:
|
||||
|
||||
self.optimizers.zero_grad_all()
|
||||
cpu_or_cuda_str: str = self.device.split(":")[0]
|
||||
cpu_or_cuda_str = "cpu" if cpu_or_cuda_str == "mps" else cpu_or_cuda_str
|
||||
assert (
|
||||
self.gradient_accumulation_steps > 0
|
||||
), f"gradient_accumulation_steps must be > 0, not {self.gradient_accumulation_steps}"
|
||||
|
||||
Reference in new issue
Block a user