Skip to content
Snippets Groups Projects
Commit 8b627d73 authored by Kaushik Kulkarni's avatar Kaushik Kulkarni Committed by Andreas Klöckner
Browse files

to_numpy: thaw(freeze(...)) first

parent daa25742
No related branches found
No related tags found
No related merge requests found
...@@ -880,7 +880,10 @@ def to_numpy(ary: ArrayOrContainerT, actx: ArrayContext) -> Any: ...@@ -880,7 +880,10 @@ def to_numpy(ary: ArrayOrContainerT, actx: ArrayContext) -> Any:
f"array of type '{type(subary).__name__}' not in " f"array of type '{type(subary).__name__}' not in "
f"supported types {actx.array_types}") f"supported types {actx.array_types}")
return rec_map_array_container(_to_numpy_with_check, ary) return rec_map_array_container(_to_numpy_with_check,
# do a freeze first, if 'actx' supports
# container-wide freezes
thaw(freeze(ary, actx), actx))
# }}} # }}}
......
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