Skip to content

Commit

Permalink
Update _core.py
Browse files Browse the repository at this point in the history
  • Loading branch information
r-sarma authored Dec 12, 2024
1 parent fb9b30b commit 5d5c2ad
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions use-cases/lattice-qcd/src/device/_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ def __init__(self, model):
def set_seed(self, seed):
self.seed = seed
torch.manual_seed(self.seed)
print(f"Seed set for rank {self.rank}: {self.seed}")

def to(self, *args, **kwargs):
self._model.net_.to(*args, **kwargs)
Expand Down

0 comments on commit 5d5c2ad

Please sign in to comment.