Skip to content

Commit

Permalink
Merge pull request #92 from neuro-ml/develop
Browse files Browse the repository at this point in the history
faster Average
  • Loading branch information
AnihilatorGun authored Nov 25, 2024
2 parents fcd06be + 6e8e13d commit 4a94f0c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dpipe/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.4.2'
__version__ = '0.4.3'
2 changes: 1 addition & 1 deletion dpipe/im/grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def build(self):
result_torch = torch.from_numpy(self._result)
counts_torch = torch.from_numpy(self._counts)

counts_torch[counts_torch == 0] = 1
counts_torch.clip_(1)
torch.div(result_torch, counts_torch, out=result_torch)
else:
np.true_divide(self._result, self._counts, out=self._result, where=self._counts > 0)
Expand Down

0 comments on commit 4a94f0c

Please sign in to comment.