Skip to content

Commit

Permalink
Fixed unintended change in dynamic shape calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
twerkmeister committed Jul 26, 2022
1 parent f867660 commit 6991838
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rasa/utils/tensorflow/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ def _dynamic_signature(
element_spec = []
for tensor in batch_in:
if len(tensor.shape) > 1:
shape: List[Union[None, int]] = [None] * (len(tensor.shape) - 2)
shape: List[Union[None, int]] = [None] * (len(tensor.shape) - 1)
shape += [tensor.shape[-1]]
else:
shape = [None]
Expand Down

0 comments on commit 6991838

Please sign in to comment.