Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion d2go/runner/default_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ def _get_model_with_abnormal_checker(model):
_get_model_with_abnormal_checker(model), data_loader, optimizer
)

if cfg.SOLVER.AMP.ENABLED and torch.cuda.is_available():
if torch.cuda.is_available():
# Allow to use the TensorFloat32 (TF32) tensor cores, available on A100 GPUs.
# For more details https://pytorch.org/docs/stable/notes/cuda.html#tf32-on-ampere.
torch.backends.cuda.matmul.allow_tf32 = True
Expand Down