Skip to content

Pass all length/ix arguments to AttributeEngine - #62

Open
manuelcandales wants to merge 1 commit into
mainfrom
manuel/tensorlist-size
Open

manuelcandales wants to merge 1 commit into
mainfrom
manuel/tensorlist-size

Conversation

@manuelcandales

Copy link
Copy Markdown
Contributor

This pull request refactors the argument structure generation logic in facto/inputgen/argument/engine.py to ensure that dependency arguments (args) are consistently threaded through recursive calls. Additionally, a new test is added to verify the correct handling of tensor list constraints.

Refactoring for argument threading:

  • Modified gen_structure_with_depth_and_length and gen_structure_with_depth to accept and propagate an args tuple, ensuring dependencies are correctly passed through recursive calls. [1] [2] [3] [4] [5] [6]

Testing improvements:

  • Added test_tensor_list to test/inputgen/test_meta_arg_engine.py to verify that tensor list constraints are handled correctly and produce the expected structure.

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Feb 6, 2026
@meta-codesync

meta-codesync Bot commented Feb 11, 2026

Copy link
Copy Markdown

@manuelcandales has imported this pull request. If you are a Meta employee, you can view this in D92911167.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant