"git@developer.sourcefind.cn:OpenDAS/vision.git" did not exist on "fe4d17fc43e9e0674d741712a68fceba620c2c8f"
[PyTorch] Fix windows build for torchvision when `MOBILE` is defined (#4571) (#4742)
Summary: Pull Request resolved: https://github.com/pytorch/vision/pull/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 <larryliu@fb.com>
Showing
Please register or sign in to comment