Skip to content

Commit

Permalink
Fix broadcast_arrays for user-defined data types (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
MatejUrbanQC authored Jul 17, 2024
1 parent c6df96c commit 7650f9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ndonnx/_funcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@ def numeric_like(x):
if isinstance(x.dtype, dtypes.NullableNumerical):
return x
else:
return zeros_like(x)
return zeros_like(x, dtype=dtypes.int64)

ret = numeric_like(next(it))
while (x := next(it, None)) is not None:
Expand Down

0 comments on commit 7650f9c

Please sign in to comment.