Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
inline calls in freeze before _normalize_pt_expr
  • Loading branch information
majosm authored and inducer committed Jul 1, 2025
commit 0362dab5674cae8f68ecf9fc4b92757451dea522
6 changes: 6 additions & 0 deletions arraycontext/impl/pytato/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -633,6 +633,12 @@ def _to_frozen(

pt_dict_of_named_arrays = pt.make_dict_of_named_arrays(
key_to_pt_arrays)

# FIXME: Remove this if/when _normalize_pt_expr gets support for functions
pt_dict_of_named_arrays = pt.tag_all_calls_to_be_inlined(
pt_dict_of_named_arrays)
pt_dict_of_named_arrays = pt.inline_calls(pt_dict_of_named_arrays)

normalized_expr, bound_arguments = _normalize_pt_expr(
pt_dict_of_named_arrays)

Expand Down