Skip to content

Commit

Permalink
[Fixbug] Convert tensor to cpu before dumping (#141)
Browse files Browse the repository at this point in the history
convert tensor to cpu before dumping
  • Loading branch information
hjjq committed Mar 23, 2023
1 parent 7fbb885 commit 3f15236
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/hidet/graph/tensor.py
Expand Up @@ -422,7 +422,7 @@ def __hash__(self):

def __getstate__(self):
if self.storage:
data = self.detach().numpy()
data = self.detach().cpu().numpy()
else:
data = None

Expand Down

0 comments on commit 3f15236

Please sign in to comment.