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 83b667e commit a8e3e28Copy full SHA for a8e3e28
test/test_std.py
@@ -16,5 +16,5 @@ def test_std(dtype, device, bias):
16
17
out = scatter_std(src, index, dim=-1, unbiased=bias)
18
std = src.std(dim=-1, unbiased=bias)[0].item()
19
- expected = torch.tensor([[std, 0], [0, std]], dtype=out.dtype)
+ expected = tensor([[std, 0], [0, std]], dtype, device)
20
assert torch.allclose(out, expected)
0 commit comments