Skip to content

Conversation

@vanbasten23
Copy link
Collaborator

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" "$@"
Copy link
Collaborator

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

Copy link
Collaborator

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.

xla/test/run_tests.sh

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
}

@vanbasten23 vanbasten23 changed the title Fix the dynamic shape test and add it to the CI. Add the dynamic shape unit test the CI. Nov 14, 2022
@vanbasten23 vanbasten23 requested a review from JackCaoG November 14, 2022 18:35
@JackCaoG
Copy link
Collaborator

Has the issue been fixed?

@vanbasten23
Copy link
Collaborator Author

Yes, the test start passing.

Copy link
Collaborator

@JackCaoG JackCaoG left a 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.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix dynamic shape test (xla/test/test_dynamic_shapes.py) and add it to pytorch/xla's CI.

4 participants