Skip to content

Commit

Permalink
Cast back to input dtype in where
Browse files Browse the repository at this point in the history
  • Loading branch information
adityagoel4512 committed Jul 22, 2024
1 parent 7650f9c commit 8b25df2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ndonnx/_core/_impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ def where_dtype_agnostic(a: ndx.Array, b: ndx.Array) -> ndx.Array:
a.astype(dtypes.int32)._core(),
b.astype(dtypes.int32)._core(),
)
)
).astype(a.dtype)
elif isinstance(a.dtype, dtypes.CoreType):
return _from_corearray(
opx.where(
Expand Down

0 comments on commit 8b25df2

Please sign in to comment.