Skip to content

Commit

Permalink
Merge pull request #21 from EdanToledo/chore/cleanup
Browse files Browse the repository at this point in the history
chore: remove commented code
  • Loading branch information
EdanToledo authored Mar 9, 2024
2 parents d89e829 + fbc7930 commit 6bb37a3
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions stoix/evaluator.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,6 @@ def _env_step(eval_state: EvalState) -> EvalState:
policy_key,
)

# if config.arch.evaluation_greedy:
# action = pi.mode()
# else:
# action = pi.sample(seed=policy_key)

# Step environment.
env_state, timestep = env.step(env_state, action.squeeze())

Expand Down Expand Up @@ -201,11 +196,6 @@ def _env_step(eval_state: RNNEvalState) -> RNNEvalState:
# Run the network.
hstate, action = rec_act_fn(params, hstate, ac_in, policy_key)

# if config.arch.evaluation_greedy:
# action = pi.mode()
# else:
# action = pi.sample(seed=policy_key)

# Step environment.
env_state, timestep = env.step(env_state, action[-1].squeeze(0))

Expand Down

0 comments on commit 6bb37a3

Please sign in to comment.