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

Add comment to warn against early exits from freeze

parent 5500b905
No related branches found
No related tags found
No related merge requests found
Pipeline #304483 passed
......@@ -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
# }}}
......
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