Skip to content
Snippets Groups Projects
Commit 896e16df authored by Matt Wala's avatar Matt Wala
Browse files

Undo changes to type inference. They were not needed.

parent 37ca145f
No related branches found
No related tags found
1 merge request!124Remove numpy dtypes from ArgExtFunction and SegmentedFunction
......@@ -443,7 +443,7 @@ def _infer_var_type(kernel, var_name, type_inf_mapper, subst_expander):
result_i = comp_dtype_set
break
assert found, var_name
assert found
if result_i is not None:
result.append(result_i)
......@@ -672,11 +672,6 @@ def infer_arg_and_reduction_dtypes_for_reduction_expression(
raise LoopyError("failed to determine type of accumulator for "
"reduction '%s'" % expr)
arg_dtypes = tuple(
dt.with_target(kernel.target)
if dt is not lp.auto else dt
for dt in arg_dtypes)
reduction_dtypes = expr.operation.result_dtypes(kernel, *arg_dtypes)
reduction_dtypes = tuple(
dt.with_target(kernel.target)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment