Skip to content

Commit e75a9d2

Browse files
updating the pre-commit
1 parent 5f718a9 commit e75a9d2

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

tests/test_integration.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -213,9 +213,7 @@ def test_module_output_device(module_name, device):
213213
with torch.no_grad():
214214
out = module(x)
215215

216-
assert out.device.type == device, (
217-
f"Output is on {out.device} but expected {device}"
218-
)
216+
assert out.device.type == device, f"Output is on {out.device} but expected {device}"
219217

220218

221219
@pytest.mark.parametrize("device", DEVICES)
@@ -235,9 +233,7 @@ def test_integration_on_device(model_name, device):
235233
out = model(x)
236234

237235
assert out.shape == (2, 2), f"Expected shape (2, 2) but got {out.shape}"
238-
assert out.device.type == device, (
239-
f"Output is on {out.device} but expected {device}"
240-
)
236+
assert out.device.type == device, f"Output is on {out.device} but expected {device}"
241237

242238

243239
# Batch shapes to test broadcast compatibility

0 commit comments

Comments
 (0)