Skip to content

Commit

Permalink
Disable arg casting for scalars
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasdiener committed Sep 11, 2024
1 parent 3fedafc commit eae4f3e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pytato/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,9 @@ def cast_to_result_type(

expr = TypeCast(result_dtype, expr)
elif isinstance(expr, SCALAR_CLASSES):
expr = result_dtype.type(expr)
# Disabled due to https://github.com/inducer/pytato/issues/542
# expr = result_dtype.type(expr)
return expr

return expr

Expand Down

0 comments on commit eae4f3e

Please sign in to comment.