Skip to content

Commit

Permalink
Bug fix of AudioSeqField (OpenNMT#1319)
Browse files Browse the repository at this point in the history
* Bug fix
  • Loading branch information
takatomo-k authored and vince62s committed Feb 24, 2019
1 parent 9865443 commit cae083f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion onmt/inputters/audio_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ def numericalize(self, arr, device=None):
arr = arr.permute(3, 0, 1, 2)
if self.sequential:
arr = arr.contiguous()

arr = arr.to(device)
if self.include_lengths:
return arr, lengths
return arr
Expand Down

0 comments on commit cae083f

Please sign in to comment.