Skip to content

Commit

Permalink
fixing eager logic for var
Browse files Browse the repository at this point in the history
  • Loading branch information
ipdemes committed Nov 30, 2023
1 parent 4ef0749 commit 18a6fe8
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions cunumeric/eager.py
Original file line number Diff line number Diff line change
Expand Up @@ -1532,7 +1532,9 @@ def unary_reduction(
squared,
out=self.array,
axis=orig_axis,
where=where,
where=where
if not isinstance(where, EagerArray)
else where.array,
keepdims=keepdims,
)
elif op == UnaryRedCode.VARIANCE:
Expand All @@ -1542,7 +1544,9 @@ def unary_reduction(
np.sum(
squares,
axis=orig_axis,
where=where,
where=where
if not isinstance(where, EagerArray)
else where.array,
keepdims=keepdims,
out=self.array,
)
Expand Down

0 comments on commit 18a6fe8

Please sign in to comment.