Skip to content

Commit

Permalink
Apply temporal merge to the time dimensions, not the cell/batch dimen…
Browse files Browse the repository at this point in the history
…sion
  • Loading branch information
msschwartz21 committed Jun 5, 2024
1 parent e6d7af8 commit 09ba804
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deepcell/layers/temporal.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def __init__(self, encoder_dim=64, **kwargs):
def call(self, inputs):
input_shape = tf.shape(inputs)
# reshape away the temporal axis
x = tf.reshape(inputs, [-1, input_shape[2], self.encoder_dim])
x = tf.reshape(inputs, [-1, input_shape[1], self.encoder_dim])
x = self.lstm(x)
output_shape = [-1, input_shape[1], input_shape[2], self.encoder_dim]
x = tf.reshape(x, output_shape)
Expand Down

0 comments on commit 09ba804

Please sign in to comment.