1 parent 6aab27f commit 2d5f204Copy full SHA for 2d5f204
1 file changed
benchmarks/test_benchmark_nearest.py
@@ -1,5 +1,6 @@
1
import importlib.util
2
from itertools import product
3
+from typing import Optional
4
5
import pytest
6
import torch
@@ -38,7 +39,7 @@ def _assert_nearest_within_cuda(
38
39
out_triton: torch.Tensor,
40
x: torch.Tensor,
41
y: torch.Tensor,
- tol: float | None = None,
42
+ tol: Optional[float] = None,
43
) -> None:
44
if tol is None:
45
tol = 5 * torch.finfo(x.dtype).eps
0 commit comments