Skip to content

Commit

Permalink
Remove del patches (#6095)
Browse files Browse the repository at this point in the history
  • Loading branch information
drbeh authored Mar 2, 2023
1 parent 934ba09 commit 958aac7
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion monai/transforms/spatial/array.py
Original file line number Diff line number Diff line change
Expand Up @@ -3140,7 +3140,6 @@ def __call__(self, array: NdarrayOrTensor) -> MetaTensor:
patches = list(zip(*patch_iterator))
patched_image = np.array(patches[0])
locations = np.array(patches[1])[:, 1:, 0] # only keep the starting location
del patches # it will free up some memory if padding is used.

# Apply threshold filtering
if self.threshold is not None:
Expand Down

0 comments on commit 958aac7

Please sign in to comment.