Skip to content

Commit

Permalink
fix: TensorArray .to() moves tensor now to device
Browse files Browse the repository at this point in the history
  • Loading branch information
Karol-G committed Jul 2, 2024
1 parent 19abf27 commit ede69e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion patchly/array_like.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,4 +227,4 @@ def argmax(self, axis=None):
return TensorArray(torch.argmax(self.data, axis), self.device)

def to(self, device):
return TensorArray(self.data, self.device)
return TensorArray(self.data, device)

0 comments on commit ede69e2

Please sign in to comment.