Skip to content

Commit

Permalink
Update type_inference.py (#1029)
Browse files Browse the repository at this point in the history
  • Loading branch information
tbennun committed Jun 22, 2022
1 parent f05391f commit 98e18ac
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dace/codegen/tools/type_inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,9 @@ def _Call(t, symbols, inferred_symbols):
if name in ('abs', 'log'):
return arg_types[0]
if name in ('min', 'max'): # binary math operations that do not exist in the math module
return dtypes.result_type_of(arg_types[0], *arg_types)
return dtypes.result_type_of(arg_types[0], *arg_types)
if name in ('round', ):
return dtypes.typeclass(int)

# dtypes (dace.int32, np.float64) can be used as functions
inf_type = _infer_dtype(t)
Expand Down

0 comments on commit 98e18ac

Please sign in to comment.