Skip to content

Commit

Permalink
Update cunumeric/array.py
Browse files Browse the repository at this point in the history
Co-authored-by: Manolis Papadakis <[email protected]>
  • Loading branch information
ipdemes and manopapad authored Nov 9, 2023
1 parent 2a2ead5 commit 329bf5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cunumeric/array.py
Original file line number Diff line number Diff line change
Expand Up @@ -3160,7 +3160,7 @@ def mean(
if where_array is not None:
divisor = where_array._count_nonzero(axis=axis)
else:
divisor = self.shape[axis]
divisor = np.array(self.shape[axis])
# Divide by the number of things in the collapsed dimensions
# Pick the right kinds of division based on the dtype
sum_array = sum_array.astype(dtype)
Expand Down

0 comments on commit 329bf5a

Please sign in to comment.