Unverified Commit d704a730 authored by Dhruv Nair's avatar Dhruv Nair Committed by GitHub
Browse files

Compile test fix (#6104)

* update

* update
parent 49db233b
...@@ -820,7 +820,9 @@ def _is_torch_fp16_available(device): ...@@ -820,7 +820,9 @@ def _is_torch_fp16_available(device):
try: try:
x = torch.zeros((2, 2), dtype=torch.float16).to(device) x = torch.zeros((2, 2), dtype=torch.float16).to(device)
_ = x @ x _ = torch.mul(x, x)
return True
except Exception as e: except Exception as e:
if device.type == "cuda": if device.type == "cuda":
raise ValueError( raise ValueError(
...@@ -838,7 +840,9 @@ def _is_torch_fp64_available(device): ...@@ -838,7 +840,9 @@ def _is_torch_fp64_available(device):
try: try:
x = torch.zeros((2, 2), dtype=torch.float64).to(device) x = torch.zeros((2, 2), dtype=torch.float64).to(device)
_ = x @ x _ = torch.mul(x, x)
return True
except Exception as e: except Exception as e:
if device.type == "cuda": if device.type == "cuda":
raise ValueError( raise ValueError(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment