Skip to content

Commit f3f7205

Browse files
authored
Merge pull request #901 from Unity-Technologies/hotfix-swish
Replace CC `tanh` activation with `swish`
2 parents 2c6287b + 6f81f65 commit f3f7205

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

python/trainer_config.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,10 +114,11 @@ VisualPyramidBrain:
114114

115115
Ball3DBrain:
116116
normalize: true
117-
batch_size: 1200
117+
batch_size: 64
118118
buffer_size: 12000
119119
summary_freq: 1000
120120
time_horizon: 1000
121+
lambd: 0.99
121122
gamma: 0.995
122123
beta: 0.001
123124

python/unitytrainers/models.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -168,10 +168,7 @@ def create_observation_streams(self, num_streams, h_size, num_layers):
168168
:return: List of encoded streams.
169169
"""
170170
brain = self.brain
171-
if brain.vector_action_space_type == "continuous":
172-
activation_fn = tf.nn.tanh
173-
else:
174-
activation_fn = self.swish
171+
activation_fn = self.swish
175172

176173
self.visual_in = []
177174
for i in range(brain.number_visual_observations):

0 commit comments

Comments
 (0)