Skip to content

add typing to pybindings #120

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

Closed
wants to merge 1 commit into from

Conversation

JacobSzwejbka
Copy link
Contributor

Summary:
.pyi file is needed for pyre to recognize the pybindings. Additionally you have to name the .pyi exactly the name of the pybinding lib which is problematic for us because we have 4 libs and 2 arent public. To make matters worse the types arg in the buck rule doesnt handle targets in the same manner as srcs. Put all this together and you get the weird genrule logic in the build files.

A couple of pyre-ignores remain in the test due to the program/operator meta apis that arent in the .pyi because Im going to move them out of pybindings extension

Differential Revision: D48634638

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Aug 24, 2023
@facebook-github-bot
Copy link
Contributor

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

@facebook-github-bot
Copy link
Contributor

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

@facebook-github-bot
Copy link
Contributor

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

Summary:
Pull Request resolved: pytorch/executorch#120

.pyi file is needed for pyre to recognize the pybindings. Additionally you have to name the .pyi exactly the name of the pybinding lib which is problematic for us because we have 4 libs and 2 arent public. To make matters worse the types arg in the buck rule doesnt handle targets in the same manner as srcs. Put all this together and you get the weird genrule logic in the build files.

A couple of pyre-ignores remain in the test due to the program/operator meta apis that arent in the .pyi because Im going to move them out of pybindings extension

Reviewed By: cccclai

Differential Revision: D48634638

fbshipit-source-id: 0cf8855d1e455f098b52ffb1f880a9264e35d151
@facebook-github-bot
Copy link
Contributor

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

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 3794945.

Gasoonjia pushed a commit that referenced this pull request Jul 30, 2024
* l3

* model load

* support params file

* typo

* typo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants