Skip to content
Snippets Groups Projects
Commit 7fcdb469 authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

Add expect_completion arg to add_and_infer_dtypes, default to False

parent 23992e8a
No related branches found
No related tags found
No related merge requests found
...@@ -107,7 +107,7 @@ def get_arguments_with_incomplete_dtype(knl): ...@@ -107,7 +107,7 @@ def get_arguments_with_incomplete_dtype(knl):
if arg.dtype is None] if arg.dtype is None]
def add_and_infer_dtypes(knl, dtype_dict): def add_and_infer_dtypes(knl, dtype_dict, expect_completion=False):
processed_dtype_dict = {} processed_dtype_dict = {}
for k, v in six.iteritems(dtype_dict): for k, v in six.iteritems(dtype_dict):
...@@ -119,7 +119,7 @@ def add_and_infer_dtypes(knl, dtype_dict): ...@@ -119,7 +119,7 @@ def add_and_infer_dtypes(knl, dtype_dict):
knl = add_dtypes(knl, processed_dtype_dict) knl = add_dtypes(knl, processed_dtype_dict)
from loopy.type_inference import infer_unknown_types from loopy.type_inference import infer_unknown_types
return infer_unknown_types(knl, expect_completion=True) return infer_unknown_types(knl, expect_completion=expect_completion)
def _add_and_infer_dtypes_overdetermined(knl, dtype_dict): def _add_and_infer_dtypes_overdetermined(knl, dtype_dict):
......
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