Skip to content

Commit

Permalink
diis: reshape with tuple always
Browse files Browse the repository at this point in the history
  • Loading branch information
jcmgray committed Jan 29, 2025
1 parent 7e6108a commit 768169b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quimb/experimental/belief_propagation/diis.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def pack(self, tree):
def extractor(x):
if isinstance(x, Tensor):
x = x.data
arrays.append(self._reshape(x, -1))
arrays.append(self._reshape(x, (-1,)))

arrays = []
tree_apply(extractor, tree)
Expand Down

0 comments on commit 768169b

Please sign in to comment.