Skip to content

Commit

Permalink
Drop set_cuda_device
Browse files Browse the repository at this point in the history
  • Loading branch information
jkulhanek committed Aug 14, 2024
1 parent 7d99a95 commit 08e8361
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions nerfstudio/scripts/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,6 @@ def train_loop(local_rank: int, world_size: int, config: TrainerConfig, global_r
config: config file specifying training regimen
"""
_set_random_seed(config.machine.seed + global_rank)
if torch.cuda.is_available():
torch.cuda.set_device(local_rank)
trainer = config.setup(local_rank=local_rank, world_size=world_size)
trainer.setup()
trainer.train()
Expand Down

0 comments on commit 08e8361

Please sign in to comment.