Skip to content

Commit

Permalink
add moving results to host memory after contraction using torch
Browse files Browse the repository at this point in the history
  • Loading branch information
danlkv committed Apr 12, 2024
1 parent 447a13d commit fdbff76
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions qtensor/contraction_backends/torch.py
Original file line number Diff line number Diff line change
Expand Up @@ -551,4 +551,6 @@ def get_result_data(self, result):
d = result.data.reshape(self._get_index_sizes(*result.indices))
else:
d = result.data
# move to cpu
d = d.cpu()
return torch.permute(d, tuple(reversed(range(d.ndim))))

0 comments on commit fdbff76

Please sign in to comment.