Skip to content

Commit c44b6cb

Browse files
author
Andrea Palazzi
authored
Merge pull request #5 from stefanopini/master
Fix bug when batch_first is False
2 parents e233b44 + 8863c88 commit c44b6cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

convlstm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def forward(self, input_tensor, hidden_state=None):
114114
"""
115115
if not self.batch_first:
116116
# (t, b, c, h, w) -> (b, t, c, h, w)
117-
input_tensor.permute(1, 0, 2, 3, 4)
117+
input_tensor = input_tensor.permute(1, 0, 2, 3, 4)
118118

119119
# Implement stateful ConvLSTM
120120
if hidden_state is not None:

0 commit comments

Comments
 (0)