Skip to content
Snippets Groups Projects
Commit ba06fce3 authored by Alexandru Fikl's avatar Alexandru Fikl
Browse files

execution: fix map_if for scalars

parent a830a97a
No related branches found
No related tags found
1 merge request!52execution: fix map_if for scalars
Pipeline #22084 passed
...@@ -132,7 +132,7 @@ class ExecutionMapper(mappers.Evaluator, ...@@ -132,7 +132,7 @@ class ExecutionMapper(mappers.Evaluator,
if isinstance(else_, pyopencl.array.Array): if isinstance(else_, pyopencl.array.Array):
sym_else = var("b")[i] sym_else = var("b")[i]
elif isinstance(then, np.number): elif isinstance(else_, np.number):
sym_else = var("b") sym_else = var("b")
else: else:
raise TypeError( raise TypeError(
......
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