Skip to content

Commit

Permalink
hpu_accelerator: use torch.use_deterministic_algorithms (#6897)
Browse files Browse the repository at this point in the history
formal API instead of hpu.setDeterministic
  • Loading branch information
nelyahu authored Dec 20, 2024
1 parent 00ea0c4 commit eea5304
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion accelerator/hpu_accelerator.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ def __init__(self):
self.apply_hpu_workarounds()
try:
import habana_frameworks.torch.hpu as hpu
hpu.setDeterministic(True)
self.hpu = hpu
torch.use_deterministic_algorithms(True)
except ImportError as e:
raise ValueError(
f"HPU_Accelerator requires habana_frameworks.torch.hpu, which is not installed on this system.")
Expand Down

0 comments on commit eea5304

Please sign in to comment.