Skip to content

Commit 37709ac

Browse files
kaushikcfdinducer
authored andcommitted
respect PrefixNamed when normalizing frozen expression
1 parent 6f9616f commit 37709ac

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

arraycontext/impl/pytato/utils.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,9 @@ def map_data_wrapper(self, expr: DataWrapper) -> Array:
5858
f"{expr.name} => Illegal.")
5959
self.seen_inputs.add(expr.name)
6060

61-
# Normalizing names so that we more arrays can have the normalized DAG.
62-
name = self.vng("_actx_dw")
61+
# Normalizing names so that more arrays can have the same normalized DAG.
62+
from pytato.codegen import _generate_name_for_temp
63+
name = _generate_name_for_temp(expr, self.vng, "_actx_dw")
6364
self.bound_arguments[name] = expr.data
6465
return make_placeholder(
6566
name=name,

0 commit comments

Comments
 (0)