We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fb25ccb commit 479900dCopy full SHA for 479900d
1 file changed
source/tests/consistent/test_activation.py
@@ -113,7 +113,7 @@ def test_pt_expt_consistent_with_ref(self) -> None:
113
x = torch.tensor(
114
self.random_input, dtype=torch.float64, device=PT_EXPT_DEVICE
115
)
116
- test = _torch_activation(x, self.activation).detach().numpy()
+ test = _torch_activation(x, self.activation).detach().cpu().numpy()
117
np.testing.assert_allclose(self.ref, test, atol=1e-10)
118
119
@@ -155,5 +155,5 @@ def test_pt_expt_consistent_with_ref(self) -> None:
155
156
157
158
159
0 commit comments