Skip to content

Commit

Permalink
made float32 default
Browse files Browse the repository at this point in the history
  • Loading branch information
loreloc committed Jul 21, 2024
1 parent 26c246b commit 0a1a1c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/scripts/experiment.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@
)
parser.add_argument(
"--dtype",
default="float64",
default="float32",
choices=["float32", "float64"],
help="The default Torch dtype to use",
)
Expand Down
1 change: 1 addition & 0 deletions src/scripts/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ def set_global_seed(seed: int, is_deterministic=True):
if is_deterministic is True:
torch.backends.cudnn.deterministic = True
torch.backends.cudnn.benchmark = False
torch._dynamo.config.cache_size_limit = 24


def get_git_revision_hash() -> str:
Expand Down

0 comments on commit 0a1a1c5

Please sign in to comment.