Skip to content

refactor pybindings #126

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 3 commits into from

Conversation

JacobSzwejbka
Copy link
Contributor

Summary: Now that the codegen stuff is moved we can simplify a lot of the build system here. Also renamed module.cpp because its more then just the module api

Differential Revision: D48667529

JacobSzwejbka and others added 3 commits August 24, 2023 16:38
… tensor conversions (#121)

Summary:
Pull Request resolved: pytorch/executorch#121

Keepalive was difficult to manage and Im not even sure how sound it was for things like strides and dim order. Now the run_method loop is a little grosser, but I think the intent is much clearer. We cast from python types to at types, and then possible have to do a hard conversion from at::tensor to ETensor which can be pretty gross since ETensor doesnt manage any memory. This highlights the need for like an ETensor wrapper that manages a bunch of state like sizes and TensorImpl

Differential Revision: https://internalfb.com/D48618092

fbshipit-source-id: 1df77d197de435bc51d891af2b82e7156265a6b4
Differential Revision: https://internalfb.com/D48662995

fbshipit-source-id: 94ca60c074d41dff1fe9237a357bdf498a2e3b7e
Summary: Now that the codegen stuff is moved we can simplify a lot of the build system here. Also renamed module.cpp because its more then just the module api

Differential Revision: D48667529

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

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

Gasoonjia pushed a commit that referenced this pull request Jul 30, 2024
* macos12 full build (x86)

* add support for setting precision via --dtype

* setup default dtype as float32

* setup default dtype as float32
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants