-
Notifications
You must be signed in to change notification settings - Fork 801
Enable test_ft_map_basic and test_ft_map_dynshape tests #16666
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -703,15 +703,44 @@ def test_ft_cond_basic(self): | |||||||||
| ), | ||||||||||
| )(self) | ||||||||||
|
|
||||||||||
| @skipUnless(RUN_SKIPPED, "Emitter is not ready yet") | ||||||||||
| def test_ft_map_basic(self): | ||||||||||
| maketest( | ||||||||||
| FTMapBasic, | ||||||||||
| capture_config=exir.CaptureConfig( | ||||||||||
| enable_dynamic_shape=True, | ||||||||||
| enable_functionalization=False, # TODO enable functionalization | ||||||||||
| ), | ||||||||||
| )(self) | ||||||||||
| """Test FTMapBasic model through the modern torch.export API.""" | ||||||||||
| from executorch.exir import EdgeCompileConfig, to_edge | ||||||||||
|
||||||||||
| from executorch.exir import EdgeCompileConfig, to_edge | |
| from executorch.exir import to_edge |
Copilot
AI
Jan 17, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
EdgeCompileConfig is already imported at the module level (line 26). Only to_edge needs to be imported here since it's not available at the module level.
| from executorch.exir import EdgeCompileConfig, to_edge | |
| from executorch.exir import to_edge |
Copilot
AI
Jan 17, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This test only validates a single execution with one set of inputs. The previous maketest approach ran 10 iterations with different random inputs (niter=10) to catch edge cases and ensure consistent behavior. Consider adding a loop to test multiple random input sets for more robust validation.
Copilot
AI
Jan 17, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
EdgeCompileConfig is already imported at the module level (line 26). Only to_edge needs to be imported here since it's not available at the module level.
Copilot
AI
Jan 17, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This test only validates a single execution with one set of inputs. The previous maketest approach ran 10 iterations with different random inputs (niter=10) to catch edge cases and ensure consistent behavior. Consider adding a loop to test multiple random input sets for more robust validation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The import statement
from executorch.exir import EdgeCompileConfig, to_edgeis redundant sinceEdgeCompileConfigis already imported at the module level (line 26). Consider using the existing module-level import and only importingto_edgelocally, or move both imports to the top of the file for consistency with other imports in this test file.