We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1cb5ad9 commit 3beb0a7Copy full SHA for 3beb0a7
1 file changed
tests/unit/test_sensors.py
@@ -35,7 +35,7 @@ def test_camera_rays():
35
@pytest.mark.unit
36
def test_render_depth(device: str):
37
"""Test render_depth with different resolutions."""
38
- sim = Sim(n_worlds=2)
+ sim = Sim(n_worlds=2, device=device)
39
dist = render_depth(sim, camera=0, resolution=(10, 10))
40
assert dist.shape == (2, 10, 10), f"Expected shape (2, 10, 10), got {dist.shape}"
41
assert dist.device == jax.devices(device)[0], f"Expected device {device}, got {dist.device}"
0 commit comments