fix on cuda117
This commit is contained in:
parent
00ea219123
commit
1675fe458f
1
.gitignore
vendored
1
.gitignore
vendored
@ -13,3 +13,4 @@ build/
|
|||||||
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