"examples/vscode:/vscode.git/clone" did not exist on "688a9228a820c419d9548ea2b44a6e4fe0a2cc1e"
[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