Skip to content
This repository was archived by the owner on Jul 7, 2023. It is now read-only.

Commit 65516f6

Browse files
afrozenatorcopybara-github
authored andcommitted
Log the number of discretized actions only once, regarless of the train/eval batch size.
PiperOrigin-RevId: 300139035
1 parent f1901df commit 65516f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tensor2tensor/rl/gym_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ def gym_env_wrapper(env, rl_env_max_episode_steps, maxskip_env, rendered_env,
285285
env = remove_time_limit_wrapper(env)
286286

287287
if num_actions is not None:
288-
logging.log_every_n(
288+
logging.log_first_n(
289289
logging.INFO, "Number of discretized actions: %d", 1, num_actions)
290290
env = ActionDiscretizeWrapper(env, num_actions=num_actions)
291291

0 commit comments

Comments
 (0)