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

Commit e9eb66a

Browse files
koz4kCopybara-Service
authored andcommitted
internal merge of PR #1365
PiperOrigin-RevId: 228918597
1 parent 152beb0 commit e9eb66a

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

tensor2tensor/rl/envs/simulated_batch_gym_env.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,11 @@
2020
from __future__ import print_function
2121

2222
from gym import Env
23-
from tensor2tensor.rl.envs.simulated_batch_env import SimulatedBatchEnv
2423

2524
import numpy as np
25+
26+
from tensor2tensor.rl.envs.simulated_batch_env import SimulatedBatchEnv
27+
2628
import tensorflow as tf
2729

2830

tensor2tensor/rl/evaluator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@
3232
from tensor2tensor.rl import rl_utils
3333
from tensor2tensor.rl import trainer_model_based_params # pylint: disable=unused-import
3434
from tensor2tensor.utils import flags as t2t_flags # pylint: disable=unused-import
35-
from tensor2tensor.utils import trainer_lib
3635
from tensor2tensor.utils import registry
36+
from tensor2tensor.utils import trainer_lib
3737

3838
import tensorflow as tf
3939

tensor2tensor/rl/rl_utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,7 @@ def __init__(
377377

378378
def act(self, observations):
379379
def run_batch_from(observation, action):
380+
"""Run a batch of actions."""
380381
self._sim_env.initial_frames = np.array(
381382
[observation] * self._sim_env.batch_size
382383
)

0 commit comments

Comments
 (0)