-
Notifications
You must be signed in to change notification settings - Fork 560
Add the dynamic shape unit test the CI. #4180
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
Conversation
| run_dynamic python3 "$CDIR/../../test/nn/test_embedding.py" "$@" -v TestEmbeddingNNDeviceTypeXLA | ||
| run_dynamic python3 "$CDIR/../../test/test_type_promotion.py" "$@" -v TestTypePromotionXLA | ||
| run_dynamic python3 "$CDIR/test_operations.py" "$@" --verbosity=$VERBOSITY | ||
| run_dynamic python3 "$CDIR/test_dynamic_shapes.py" "$@" |
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.
Don't you need to turn on experimental shapes
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.
run_dynamic will enable those flags.
Lines 64 to 71 in 515d53e
| function run_dynamic { | |
| if [[ "$TPUVM_MODE" == "1" ]]; then | |
| run_test "$@" | |
| else | |
| echo "Running in DynamicShape mode: $@" | |
| XLA_EXPERIMENTAL="nonzero:masked_select:masked_scatter" run_test "$@" | |
| fi | |
| } |
|
Has the issue been fixed? |
|
Yes, the test start passing. |
JackCaoG
left a comment
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.
Thanks! Feel free to merge once CI is green.
Fix #ISSUE_NUMBER.