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

Commit 0fc87aa

Browse files
afrozenatorcopybara-github
authored andcommitted
Minor documentation.
PiperOrigin-RevId: 241617014
1 parent 8b41452 commit 0fc87aa

File tree

1 file changed

+4
-0
lines changed
  • tensor2tensor/models/research

1 file changed

+4
-0
lines changed

tensor2tensor/models/research/rl.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -634,6 +634,10 @@ class FeedForwardCnnSmallCategoricalPolicy(PolicyBase):
634634

635635
def body(self, features):
636636
observations = features["inputs_raw"]
637+
# Axis 0 - Batch.
638+
# Axis 1 - Input Frames, 4 frames.
639+
# Axis 2, 3 - Height & Width.
640+
# Axis 4 - Channels RGB, 3 colours.
637641
x = tf.transpose(observations, [0, 2, 3, 1, 4])
638642
x_shape = common_layers.shape_list(x)
639643
x = tf.reshape(x, x_shape[:-2] + [-1])

0 commit comments

Comments
 (0)