[RLlib] add_time_dimension in TF loses the shape of the input layer when the batch size isn't specified #23897
Labels
bug
Something that is supposed to be working; but isn't
P2
Important issue, but not time-critical
repro-script-confirmed
rllib
RLlib related issues
What happened + What you expected to happen
I'm trying to add a time dimension to an input layer for use in an LSTM layer. The batch size of this input layer isn't specified because it changes with time, so the shape is
(?, 64)
. The expected shape of the layer after adding the time dimension is(?, ?, 64)
, but the actual shape that is returned is(?, ?, ?)
. This causes an error when I pass the new layer into an LSTM layer.This bug doesn't happen in Ray 1.10.0, but it does in Ray 1.11.0. It seems to be caused by this change: 9e6b871 (to
rllib/policy/rnn_sequencing.py
)Versions / Dependencies
This bug happens in Ray 1.11.0, but not in 1.10.0. This happens on all OSes that I've tried (Ubuntu, MacOS, and Windows). I'm using Python 3.7.10.
Reproduction script
Run the following in a Python REPL:
In Ray 1.11.0, the output is
While in Ray 1.10.0, the (correct) output is
Issue Severity
High: It blocks me from completing my task.
The text was updated successfully, but these errors were encountered: