Commit 4c16e41b authored by yanbing-j's avatar yanbing-j
Browse files

Fix lint error

parent d6a017ee
...@@ -56,7 +56,8 @@ def test_spline_conv_forward(test, dtype, device): ...@@ -56,7 +56,8 @@ def test_spline_conv_forward(test, dtype, device):
is_open_spline, 1, True, root_weight, bias) is_open_spline, 1, True, root_weight, bias)
if dtype == torch.bfloat16: if dtype == torch.bfloat16:
target = torch.tensor(test['expected']) target = torch.tensor(test['expected'])
assert torch.allclose(out.to(torch.float), target, rtol=1e-2, atol=1e-2) assert torch.allclose(out.to(torch.float), target,
rtol=1e-2, atol=1e-2)
else: else:
assert out.tolist() == test['expected'] assert out.tolist() == test['expected']
......
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