Skip to content
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

Add dynamism support to conv1d, view, softmax #6777

Merged
merged 1 commit into from
Mar 20, 2024

Conversation

lsy323
Copy link
Collaborator

@lsy323 lsy323 commented Mar 20, 2024

  • Add the dynamism support to conv1d, view and softmax

  • Enhancing the assertion in FX passes handling dynamism.

  • Added script to export ViT and Wav2vec2 model with numerical verification.

Test:

  • Enable unbounded dynamism tests for the above ops.

@lsy323 lsy323 marked this pull request as ready for review March 20, 2024 16:22
@lsy323 lsy323 changed the title Lsiyuan/add more dynamism Add more dynamism support Mar 20, 2024
format

fix comment for skipped tests

cover mul

(cherry picked from commit f55abc88ae361e89da675a1aa1e4a19e7a5c762a)

cover mul

(cherry picked from commit 30abe2be43defc25db8954c525d34f7f3de35292)

add missing tests to ci scripts

yapf

fix scalar type

(cherry picked from commit 8526b2091ffafccf6972ecba3c111d1b0869621e)

disable addmm test

disable mark pattern api in gh ci, due to tf dep

enable conv dynamism

support addmm

enable softmax dynamism

update comment for slice

add slice support, need converter change

update test script

take dynamic shape in save model export api

verify lowering by adding tfl inference in tests

remove debug pritn

add assertion of sliced dim in select lowering

remove log in conv, remove assertion in select

re-enable test

add select fx pass

add no op slice removal pass

add fx passes

add tests'

support layernorm

add vit export scripot

fix ep callable

enable gelu test

add export script

support dynamic view with sym dim on dims other than BS

add tests for gemma export

support unsqueeze

support softmax reduction on dynamic dim

support unbounded index (unfinished)

support dynamic expand

add groupnorm

add conv1d support, add dynamism (partially) to view

add wav2vec2 export script

add cumsum test, ne test

remove existing tests

change from crlf to lf

add checks on view

move stablehlo test util script

remove debugging print

add more assertions to fx passes

remove test print

add docstr to dynamic op

make export script more concise

remove debug print

add comments to shape inference

fix linter

fix test util path

yapf

remove stack

yapf

update export script

fix meta val not available in some nodes
@lsy323 lsy323 force-pushed the lsiyuan/add-more-dynamism branch from 1578b89 to eb7420f Compare March 20, 2024 16:47
@lsy323 lsy323 changed the title Add more dynamism support Add dynamism support to conv1d, view, softmax Mar 20, 2024
@lsy323 lsy323 requested a review from qihqi March 20, 2024 17:17
@lsy323 lsy323 added the dynamism Dynamic Shape Features label Mar 20, 2024
@lsy323 lsy323 merged commit e9581bc into master Mar 20, 2024
18 checks passed
@lsy323 lsy323 deleted the lsiyuan/add-more-dynamism branch March 20, 2024 19:34
@miladm miladm assigned miladm and lsy323 and unassigned miladm Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dynamism Dynamic Shape Features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants