-
Notifications
You must be signed in to change notification settings - Fork 24.2k
add support for numpy #149288
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
base: gh/tugsbayasgalan/300/base
Are you sure you want to change the base?
add support for numpy #149288
Conversation
Differential Revision: [D71294355](https://our.internmc.facebook.com/intern/diff/D71294355/) [ghstack-poisoned]
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/149288
Note: Links to docs will display an error until the docs builds have been completed. ❌ 29 New FailuresAs of commit 4846e37 with merge base 05f2cbf ( NEW FAILURES - The following jobs have failed:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
Differential Revision: [D71294355](https://our.internmc.facebook.com/intern/diff/D71294355/) ghstack-source-id: 272110576 Pull Request resolved: #149288
This pull request was exported from Phabricator. Differential Revision: D71294355 |
test/export/test_export.py
Outdated
def forward(self, x): | ||
a = x.numpy() | ||
return x + x.numpy().sum() | ||
|
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.
What's the strategy for capturing .numpy()? What does the graph look like?
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.
I will update the test with the graph. BUt main strategy is just porting: https://github.com/pytorch/pytorch/blob/main/torch/_dynamo/variables/tensor.py#L822
Differential Revision: [D71294355](https://our.internmc.facebook.com/intern/diff/D71294355/) [ghstack-poisoned]
Pull Request resolved: #149288 ghstack-source-id: 272193484 @exported-using-ghexport Differential Revision: [D71294355](https://our.internmc.facebook.com/intern/diff/D71294355/)
This pull request was exported from Phabricator. Differential Revision: D71294355 |
Differential Revision: [D71294355](https://our.internmc.facebook.com/intern/diff/D71294355/) [ghstack-poisoned]
Pull Request resolved: #149288 ghstack-source-id: 272195409 @exported-using-ghexport Differential Revision: [D71294355](https://our.internmc.facebook.com/intern/diff/D71294355/)
Looks like this PR hasn't been updated in a while so we're going to go ahead and mark this as |
Stack from ghstack (oldest at bottom):
Differential Revision: D71294355