Skip to content

Commit a2620be

Browse files
kaushikcfdinducer
authored andcommitted
use make_placeholder instead of Placeholder
1 parent bec3052 commit a2620be

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

arraycontext/impl/pytato/utils.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525

2626
from typing import Any, Dict, Set, Tuple, Mapping
27-
from pytato.array import SizeParam, Placeholder
27+
from pytato.array import SizeParam, Placeholder, make_placeholder
2828
from pytato.array import Array, DataWrapper, DictOfNamedArrays
2929
from pytato.transform import CopyMapper
3030
from pytools import UniqueNameGenerator
@@ -52,11 +52,12 @@ def map_data_wrapper(self, expr: DataWrapper) -> Array:
5252
# Normalizing names so that we more arrays can have the normalized DAG.
5353
name = self.vng("_actx_dw")
5454
self.bound_arguments[name] = expr.data
55-
return Placeholder(name=name,
56-
shape=tuple(self.rec(s) if isinstance(s, Array) else s
57-
for s in expr.shape),
58-
dtype=expr.dtype,
59-
tags=expr.tags)
55+
return make_placeholder(
56+
name=name,
57+
shape=tuple(self.rec(s) if isinstance(s, Array) else s
58+
for s in expr.shape),
59+
dtype=expr.dtype,
60+
tags=expr.tags)
6061

6162
def map_size_param(self, expr: SizeParam) -> Array:
6263
raise NotImplementedError

0 commit comments

Comments
 (0)