Skip to content

Commit

Permalink
fix for pytorch1.11 (+= became inplace op)
Browse files Browse the repository at this point in the history
  • Loading branch information
kamo-naoyuki committed May 12, 2022
1 parent 5518b6b commit 9a2001f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion espnet/nets/pytorch_backend/tacotron2/encoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def forward(self, xs, ilens=None):
if self.convs is not None:
for i in six.moves.range(len(self.convs)):
if self.use_residual:
xs += self.convs[i](xs)
xs = xs + self.convs[i](xs)
else:
xs = self.convs[i](xs)
if self.blstm is None:
Expand Down

0 comments on commit 9a2001f

Please sign in to comment.