Skip to content

Commit

Permalink
Fix builds for PyTorch on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
saudet committed Dec 23, 2021
1 parent c96f0a3 commit 4b18d83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytorch/cppbuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ sedinplace "s/var.startswith(('BUILD_', 'USE_', 'CMAKE_'))/var.startswith(('BUIL

# allow resizing std::vector<at::indexing::TensorIndex>
sedinplace '/TensorIndex(c10::nullopt_t)/i\
TensorIndex() : TensorIndex(c10::nullopt) {}\
TensorIndex(void) : type_(TensorIndexType::None) {}\
' aten/src/ATen/TensorIndexing.h

# add missing declarations
Expand Down

0 comments on commit 4b18d83

Please sign in to comment.