Skip to content

Commit

Permalink
Set seed in main function, instead of beginning of execution
Browse files Browse the repository at this point in the history
  • Loading branch information
henrytwo committed Jun 7, 2022
1 parent d00f8c7 commit f75c473
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions examples/ltc_backend_bert.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,6 @@ def main(device='lazy', full_size=False):


if __name__ == "__main__":
torch.manual_seed(0)

parser = argparse.ArgumentParser()
parser.add_argument(
"-d",
Expand Down
2 changes: 0 additions & 2 deletions examples/ltc_backend_mnist.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,6 @@ def forward(self, x):


if __name__ == "__main__":
torch.manual_seed(0)

parser = argparse.ArgumentParser()
parser.add_argument(
"-d",
Expand Down

0 comments on commit f75c473

Please sign in to comment.