Skip to content

Conversation

zou3519
Copy link
Contributor

@zou3519 zou3519 commented May 22, 2024

Summary:
co-dev reland of #124520, which requires
the removal of some executorch tests.

Before this PR, we didn't check that types in a schema were valid. This
is because TorchScript treats unknown types as type variables.

This PR checks types in a schema for the TORCH_LIBRARY APIs. To do this,
we add an allow_typevars flag to parseSchema so that TorchScript can
use allow_typevars=True. We also add some error messages for common
mistakes (e.g. using int64_t or double in schema).

Test Plan: Wait for tests

Differential Revision: D57666659

@zou3519 zou3519 requested a review from mikaylagawarecki as a code owner May 22, 2024 10:21
Copy link

pytorch-bot bot commented May 22, 2024

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/126861

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures

As of commit bfe2ebf with merge base a8195f2 (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@pytorch-bot pytorch-bot bot added the release notes: jit release notes category label May 22, 2024
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D57666659

zou3519 added a commit to zou3519/pytorch that referenced this pull request May 22, 2024
Summary:

X-link: pytorch/executorch#3705

co-dev reland of pytorch#124520, which requires
the removal of some executorch tests.

Before this PR, we didn't check that types in a schema were valid. This
is because TorchScript treats unknown types as type variables.

This PR checks types in a schema for the TORCH_LIBRARY APIs. To do this,
we add an `allow_typevars` flag to parseSchema so that TorchScript can
use allow_typevars=True. We also add some error messages for common
mistakes (e.g. using int64_t or double in schema).

Test Plan: Wait for tests

Differential Revision: D57666659
@zou3519 zou3519 force-pushed the export-D57666659 branch from d5de79f to 190881f Compare May 22, 2024 10:22
zou3519 added a commit to zou3519/executorch that referenced this pull request May 22, 2024
Summary:
X-link: pytorch/pytorch#126861


co-dev reland of pytorch/pytorch#124520, which requires
the removal of some executorch tests.

Before this PR, we didn't check that types in a schema were valid. This
is because TorchScript treats unknown types as type variables.

This PR checks types in a schema for the TORCH_LIBRARY APIs. To do this,
we add an `allow_typevars` flag to parseSchema so that TorchScript can
use allow_typevars=True. We also add some error messages for common
mistakes (e.g. using int64_t or double in schema).

Differential Revision: D57666659
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D57666659

@zou3519 zou3519 added the ciflow/trunk Trigger trunk jobs on your pull request label May 22, 2024
Summary:

X-link: pytorch/executorch#3705

co-dev reland of pytorch#124520, which requires
the removal of some executorch tests.

Before this PR, we didn't check that types in a schema were valid. This
is because TorchScript treats unknown types as type variables.

This PR checks types in a schema for the TORCH_LIBRARY APIs. To do this,
we add an `allow_typevars` flag to parseSchema so that TorchScript can
use allow_typevars=True. We also add some error messages for common
mistakes (e.g. using int64_t or double in schema).

Test Plan: Wait for tests

Reviewed By: albanD

Differential Revision: D57666659
zou3519 added a commit to zou3519/executorch that referenced this pull request May 22, 2024
Summary:
X-link: pytorch/pytorch#126861


co-dev reland of pytorch/pytorch#124520, which requires
the removal of some executorch tests.

Before this PR, we didn't check that types in a schema were valid. This
is because TorchScript treats unknown types as type variables.

This PR checks types in a schema for the TORCH_LIBRARY APIs. To do this,
we add an `allow_typevars` flag to parseSchema so that TorchScript can
use allow_typevars=True. We also add some error messages for common
mistakes (e.g. using int64_t or double in schema).

Reviewed By: albanD

Differential Revision: D57666659
@zou3519 zou3519 force-pushed the export-D57666659 branch from 190881f to bfe2ebf Compare May 22, 2024 17:59
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D57666659

@mikaylagawarecki mikaylagawarecki removed their request for review May 22, 2024 18:01
facebook-github-bot pushed a commit to pytorch/executorch that referenced this pull request May 23, 2024
Summary:
X-link: pytorch/pytorch#126861

Pull Request resolved: #3705

co-dev reland of pytorch/pytorch#124520, which requires
the removal of some executorch tests.

Before this PR, we didn't check that types in a schema were valid. This
is because TorchScript treats unknown types as type variables.

This PR checks types in a schema for the TORCH_LIBRARY APIs. To do this,
we add an `allow_typevars` flag to parseSchema so that TorchScript can
use allow_typevars=True. We also add some error messages for common
mistakes (e.g. using int64_t or double in schema).

Reviewed By: albanD

Differential Revision: D57666659

fbshipit-source-id: 25b0c247229ea78966725a3678dd01fdcc02c91d
@facebook-github-bot
Copy link
Contributor

@pytorchbot merge -f 'Landed internally'

(Initiating merge automatically since Phabricator Diff has merged, using force because this PR might not pass merge_rules.json but landed internally)

@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes). Please use -f as last resort and instead consider -i/--ignore-current to continue the merge ignoring current failures. This will allow currently pending tests to finish and report signal before the merge.

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

kirklandsign pushed a commit to kirklandsign/executorch that referenced this pull request May 24, 2024
Summary:
X-link: pytorch/pytorch#126861

Pull Request resolved: pytorch#3705

co-dev reland of pytorch/pytorch#124520, which requires
the removal of some executorch tests.

Before this PR, we didn't check that types in a schema were valid. This
is because TorchScript treats unknown types as type variables.

This PR checks types in a schema for the TORCH_LIBRARY APIs. To do this,
we add an `allow_typevars` flag to parseSchema so that TorchScript can
use allow_typevars=True. We also add some error messages for common
mistakes (e.g. using int64_t or double in schema).

Reviewed By: albanD

Differential Revision: D57666659

fbshipit-source-id: 25b0c247229ea78966725a3678dd01fdcc02c91d
titaiwangms pushed a commit to titaiwangms/pytorch that referenced this pull request May 28, 2024
Summary:
co-dev reland of pytorch#124520, which requires
the removal of some executorch tests.

Before this PR, we didn't check that types in a schema were valid. This
is because TorchScript treats unknown types as type variables.

This PR checks types in a schema for the TORCH_LIBRARY APIs. To do this,
we add an `allow_typevars` flag to parseSchema so that TorchScript can
use allow_typevars=True. We also add some error messages for common
mistakes (e.g. using int64_t or double in schema).

Test Plan: Wait for tests

Differential Revision: D57666659

Pull Request resolved: pytorch#126861
Approved by: https://github.com/albanD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ciflow/trunk Trigger trunk jobs on your pull request fb-exported Merged release notes: jit release notes category
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants