We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6806019 commit c9899cfCopy full SHA for c9899cf
algoperf/pytorch_utils.py
@@ -20,6 +20,7 @@
20
21
22
def pytorch_setup() -> Tuple[bool, int, torch.device, int]:
23
+ torch.set_float32_matmul_precision('high')
24
use_pytorch_ddp = 'LOCAL_RANK' in os.environ
25
rank = int(os.environ['LOCAL_RANK']) if use_pytorch_ddp else 0
26
device = torch.device(f'cuda:{rank}' if torch.cuda.is_available() else 'cpu')
0 commit comments