Open arvoelke opened 3 years ago
Although TimeDistributed(Dense(...))
and Dense(...)
are equivalent, replacing
https://github.com/nengo/keras-lmu/blob/ab0775791aa73f9d22780539594ef4bd7de0be25/keras_lmu/layers.py#L660-L662
with
h = self.hidden_cell(
h_in, training=training
)
fixes the issue.
Versions:
keras_lmu==0.3.2.dev0
tensorflow==2.4.1
Taking this example from the unit tests: https://github.com/nengo/keras-lmu/blob/ab0775791aa73f9d22780539594ef4bd7de0be25/keras_lmu/tests/test_layers.py#L158-L164 and modifying it as follows:
results in the error: