Skip to content

Commit dfd2425

Browse files
committed
fix for gpu
1 parent 7e6adbe commit dfd2425

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

py4DSTEM/tomography/tomography.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1893,6 +1893,8 @@ def _back(
18931893
np.sum(normalize_diff == 1)
18941894
)
18951895
keep_diff[ind_false] = False
1896+
keep_diff = xp.asarray(keep_diff)
1897+
normalize_diff = xp.asarray(normalize_diff)
18961898

18971899
update_reshaped = (
18981900
(xp.tile(xp.repeat(update, 2, axis=1)[:, keep_diff] / normalize_diff, 4))[

0 commit comments

Comments
 (0)