Skip to content

Commit 09c2dc3

Browse files
andrewcohvincentpierreErvin T
authored
Add fire to test_simple_rl.py (#4378)
Co-authored-by: Vincent-Pierre BERGES <[email protected]> Co-authored-by: Ervin T <[email protected]>
1 parent 7660a90 commit 09c2dc3

File tree

6 files changed

+530
-24
lines changed

6 files changed

+530
-24
lines changed

ml-agents/mlagents/trainers/policy/policy.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,6 @@ def __init__(
4343
self.vis_obs_size = sum(
4444
1 for shape in behavior_spec.observation_shapes if len(shape) == 3
4545
)
46-
self.vis_obs_shape = (
47-
[shape for shape in behavior_spec.observation_shapes if len(shape) == 3][0]
48-
if self.vis_obs_size > 0
49-
else None
50-
)
5146
self.use_continuous_act = behavior_spec.is_action_continuous()
5247
self.num_branches = self.behavior_spec.action_size
5348
self.previous_action_dict: Dict[str, np.array] = {}

ml-agents/mlagents/trainers/tests/test_simple_rl.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
RewardSignalType,
2828
EncoderType,
2929
ScheduleType,
30+
FrameworkType,
3031
)
3132
from mlagents.trainers.environment_parameter_manager import EnvironmentParameterManager
3233
from mlagents_envs.side_channel.environment_parameters_channel import (
@@ -53,6 +54,7 @@
5354
summary_freq=500,
5455
max_steps=3000,
5556
threaded=False,
57+
framework=FrameworkType.TENSORFLOW,
5658
)
5759

5860
SAC_CONFIG = TrainerSettings(

0 commit comments

Comments
 (0)