Skip to content

Commit

Permalink
Update conv_lstm.py
Browse files Browse the repository at this point in the history
Fixed input format to be (batch, seq_len,Chans,H,W)
  • Loading branch information
rogertrullo authored Sep 10, 2017
1 parent b74e76a commit 890d8e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions conv_lstm.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ def forward(self, input, hidden_state):
"""

#current_input = input.transpose(0, 1)#now is seq_len,B,C,H,W
current_input=input
current_input = input.transpose(0, 1)#now is seq_len,B,C,H,W
#current_input=input
next_hidden=[]#hidden states(h and c)
seq_len=current_input.size(0)

Expand Down

0 comments on commit 890d8e6

Please sign in to comment.