Merge pull request #2 from yuxuan-z19/main
Fix PyTorch 1.13 compilation bug
This commit is contained in:
commit
8b28ccc512
1
.gitignore
vendored
1
.gitignore
vendored
@ -13,3 +13,4 @@ build/
|
||||
result*
|
||||
data/cad
|
||||
misc
|
||||
.venv/
|
||||
@ -487,7 +487,7 @@ std::vector<torch::Tensor> GPDatabase::getHyperedgeInfoTensor() {
|
||||
}
|
||||
auto hyperedge_index = torch::cat({hyperedge_list.unsqueeze(0), hyperedge_index_helper.unsqueeze(0)}, 0);
|
||||
|
||||
auto new_order_idx = torch::argsort(hyperedge_index.index({0}), 0);
|
||||
auto new_order_idx = torch::argsort(hyperedge_index.index({0}), 0, false);
|
||||
hyperedge_index = hyperedge_index.index({torch::indexing::Slice(), new_order_idx});
|
||||
|
||||
return {hyperedge_index, hyperedge_list, hyperedge_list_end};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user