Skip to content

Commit

Permalink
Fix test batch
Browse files Browse the repository at this point in the history
  • Loading branch information
alexhernandezgarcia committed May 6, 2024
1 parent 4ffa0bc commit 1862d1e
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions tests/gflownet/utils/test_batch.py
Original file line number Diff line number Diff line change
Expand Up @@ -728,8 +728,6 @@ def test__mixed_sampling_multiple_envs_all_as_expected(env, proxy, batch, reques
env_aux = env_ref.copy().reset(idx + batch_size_forward)
env_aux = env_aux.set_state(state=x, done=True)
env_aux.n_actions = env_aux.get_max_traj_length()
env_aux.proxy = proxy
env_aux.setup_proxy()
envs.append(env_aux)

states_term_sorted.extend([copy(x) for x in x_batch])
Expand Down Expand Up @@ -957,8 +955,6 @@ def test__mixed_sampling_merged_all_as_expected(env, proxy, request):
env_aux = env_ref.copy().reset(idx)
env_aux = env_aux.set_state(state=x, done=True)
env_aux.n_actions = env_aux.get_max_traj_length()
env_aux.proxy = proxy
env_aux.setup_proxy()
envs.append(env_aux)

states_term_sorted.extend([copy(x) for x in x_batch])
Expand Down

0 comments on commit 1862d1e

Please sign in to comment.