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 489d5f3 commit 2febad4Copy full SHA for 2febad4
test/nn/dense/test_linear.py
@@ -94,7 +94,8 @@ def test_copy_linear(lazy):
94
assert torch.allclose(copied_lin.weight, lin.weight)
95
assert id(copied_lin.bias) != id(lin.bias)
96
assert copied_lin.bias.data_ptr() != lin.bias.data_ptr()
97
- assert torch.allclose(copied_lin.bias, lin.bias, atol=1e-6)
+ if int(torch.isnan(lin.bias).sum()) == 0:
98
+ assert torch.allclose(copied_lin.bias, lin.bias)
99
100
101
def test_hetero_linear():
0 commit comments