Skip to content

Commit

Permalink
Add to .cpu()
Browse files Browse the repository at this point in the history
  • Loading branch information
HCookie committed Jan 9, 2025
1 parent d040474 commit 75ea925
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/earthkit/data/utils/array.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def module(self):
return torch

def to_numpy(self, v):
return v.numpy()
return v.cpu().numpy()

def from_numpy(self, v):
import torch
Expand Down

0 comments on commit 75ea925

Please sign in to comment.