[Operator] Add dynamic shape support and tests for Operators.#274
Merged
yaoyaoding merged 3 commits intohidet-org:mainfrom Jun 7, 2023
Merged
[Operator] Add dynamic shape support and tests for Operators.#274yaoyaoding merged 3 commits intohidet-org:mainfrom
yaoyaoding merged 3 commits intohidet-org:mainfrom
Conversation
add associated tests
Member
|
Thanks @Aalanli ! |
vadiklyutiy
added a commit
that referenced
this pull request
Jul 22, 2024
- Adopted our scripts to use `mode` from `torch.compile` - Changed `regroup_modules` from `build_ir_module_batch` to don't create jobs bigger than `MAX_JOB_PER_WORKER` (fix issue #207) - A little bit cut/optimize tests for torch backend - move densnet121 to slow - move resnet50 to slow but add resnet18 (the last 2 points came from attempts to enable `mode='max-autotune'` in Tests. Still has additional issues)
vadiklyutiy
added a commit
that referenced
this pull request
Jul 23, 2024
- Adopted our scripts to use `mode` from `torch.compile` - Changed `regroup_modules` from `build_ir_module_batch` to don't create jobs bigger than `MAX_JOB_PER_WORKER` (fix issue #207) - A little bit cut/optimize tests for torch backend - move densnet121 to slow - move resnet50 to slow but add resnet18 (the last 2 points came from attempts to enable `mode='max-autotune'` in Tests. Still has additional issues)
vadiklyutiy
added a commit
that referenced
this pull request
Dec 26, 2024
- Adopted our scripts to use `mode` from `torch.compile` - Changed `regroup_modules` from `build_ir_module_batch` to don't create jobs bigger than `MAX_JOB_PER_WORKER` (fix issue #207) - A little bit cut/optimize tests for torch backend - move densnet121 to slow - move resnet50 to slow but add resnet18 (the last 2 points came from attempts to enable `mode='max-autotune'` in Tests. Still has additional issues)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Altered operators and added the associated test for dynamic shape support.
Changed:
However, there are certain shape checks that are not possible for dynamic dimensions during compile time, I have skipped over those for now; the shape checks will not happen if its dynamic, but I think its a definite must for the future.
Some difficulties arise comes when resolve rules rely on shapes, short-term fix would be to resolve to default implementation if shape is dynamic, long term would probably be to add conditionals to graph IR, however, this may not play very nicely with fusion...
Similarly, long term fix for operators and task mappings would probably be to add some sort of 'assert' node to the IR, so that assertions gets added to the launch function in codegen.