Skip to content

Commit

Permalink
Reduce size of test
Browse files Browse the repository at this point in the history
  • Loading branch information
bridgesign committed Nov 28, 2024
1 parent 2928965 commit 9cd206a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions brax/envs/wrappers/gym_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ def test_render(self):
def test_vector_render(self):
"""Tests rendering in the VectorGymWrapper."""
base_env = envs.create('pusher')
env = gym.VectorGymWrapper(training.VmapWrapper(base_env, batch_size=16))
env = gym.VectorGymWrapper(training.VmapWrapper(base_env, batch_size=2))
env.reset()
img = env.render(mode='rgb_array', width=250, height=236)
self.assertEqual(img.shape, (16, 236, 250, 3))
img = env.render(mode='rgb_array', width=128, height=128)
self.assertEqual(img.shape, (2, 128, 128, 3))

if __name__ == '__main__':
absltest.main()

0 comments on commit 9cd206a

Please sign in to comment.