Skip to content

Conversation

@datumbox
Copy link
Contributor

@datumbox datumbox commented Oct 26, 2021

This is an old FBcode=>GH commit which was missed.


Summary:
Pull Request resolved: #4571

Fixing windows build for torchvision when MOBILE is defined. In csrc/vision.cpp, since PyMODINIT_FUNC depends on Python.h I added the same condition for PyMODINIT_FUNC as the one for import <PyTorch.h>.

Reviewed By: malfet

Differential Revision: D31488734

fbshipit-source-id: fd52a9ab161288d9c8bf3b9e0ab9da856a4ebadb

…ytorch#4571)

Summary:
Pull Request resolved: pytorch#4571

Fixing windows build for `torchvision` when `MOBILE` is defined. In `csrc/vision.cpp`, since `PyMODINIT_FUNC` depends on `Python.h` I added the same condition for `PyMODINIT_FUNC` as the one for `import <PyTorch.h>`.

Reviewed By: malfet

Differential Revision: D31488734

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

facebook-github-bot commented Oct 26, 2021

💊 CI failures summary and remediations

As of commit e8b92dc (more details on the Dr. CI page):


💚 💚 Looks good so far! There are no failures yet. 💚 💚


This comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.

Please report bugs/suggestions to the (internal) Dr. CI Users group.

Click here to manually regenerate this comment.

@datumbox datumbox merged commit d610217 into pytorch:main Oct 26, 2021
@datumbox datumbox deleted the fbsync_missing_commit branch October 26, 2021 08:15
cyyever pushed a commit to cyyever/vision that referenced this pull request Nov 16, 2021
…ytorch#4571) (pytorch#4742)

Summary:
Pull Request resolved: pytorch#4571

Fixing windows build for `torchvision` when `MOBILE` is defined. In `csrc/vision.cpp`, since `PyMODINIT_FUNC` depends on `Python.h` I added the same condition for `PyMODINIT_FUNC` as the one for `import <PyTorch.h>`.

Reviewed By: malfet

Differential Revision: D31488734

fbshipit-source-id: fd52a9ab161288d9c8bf3b9e0ab9da856a4ebadb

Co-authored-by: Mengwei Liu <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants