Closed
Description
🐛 Bugs / Unexpected behaviors
Fixed Windows MSVC build compatibility issues. All tests passed.
If you are using pre-compiled pytorch 1.4 and torchvision 0.5. You should make the following revisions to the pytorch source codes also to successfully compile with visual studio 2019 (MSVC 19.16.27034) and CUDA 10.1.
- Change python/Lib/site-packages/torch/include/csrc/jit/script/module.h
- L466, 476, 493, 506, 536
-static constexpr *
+static const *
- Change python/Lib/site-packages/torch/include/csrc/jit/argument_spec.h
- L190
-static constexpr size_t DEPTH_LIMIT = 128;
+static const size_t DEPTH_LIMIT = 128;
- Change python/Lib/site-packages/torch/include/pybind11/cast.h
- L1449
-explicit operator type&() { return *(this->value); }
+explicit operator type& () { return *((type*)(this->value)); }
If you are using CUDA 10.2 with pre-compiled pytorch 1.4 and torchvision 0.5, you need to check
Pytorch Issue [(https://github.com/pytorch/pytorch/issues/33203)] for patching the pytorch source code in addition.
Instructions To Reproduce the Issue:
Please include the following (depending on what the issue is):
- Any changes you made (
git diff
) or code you wrote
https://github.com/facebookresearch/pytorch3d/pull/9
- The exact command(s) you ran:
- What you observed (including the full logs):
<put logs here>
Please also simplify the steps as much as possible so they do not require additional resources to
run, such as a private dataset.
Metadata
Metadata
Assignees
Labels
No labels