diff --git a/arraycontext/impl/pytato/__init__.py b/arraycontext/impl/pytato/__init__.py index aacfd826b063dac89490a0df023e77b841f21bfe..de027e6213511792e6824e89e05f8b304248d6d0 100644 --- a/arraycontext/impl/pytato/__init__.py +++ b/arraycontext/impl/pytato/__init__.py @@ -296,6 +296,10 @@ class PytatoPyOpenCLArrayContext(_BasePytatoArrayContext): raise TypeError(f"{type(self).__name__}.freeze invoked " f"with non-pytato array of type '{type(array)}'") + # Don't be tempted to take shortcuts here, e.g. for empty + # arrays, as this will inhibit metadata propagation that + # may happen in transform_dag below. See + # https://github.com/inducer/arraycontext/pull/167#issuecomment-1151877480 key_to_pt_arrays[key] = subary # }}}