Merge pull request #2 from yuxuan-z19/main
Fix PyTorch 1.13 compilation bug
This commit is contained in:
commit
8b28ccc512
3
.gitignore
vendored
3
.gitignore
vendored
@ -12,4 +12,5 @@ build/
|
|||||||
*.json
|
*.json
|
||||||
result*
|
result*
|
||||||
data/cad
|
data/cad
|
||||||
misc
|
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 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});
|
hyperedge_index = hyperedge_index.index({torch::indexing::Slice(), new_order_idx});
|
||||||
|
|
||||||
return {hyperedge_index, hyperedge_list, hyperedge_list_end};
|
return {hyperedge_index, hyperedge_list, hyperedge_list_end};
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user