Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Roger Waleffe authored and Roger Waleffe committed Oct 28, 2023
1 parent ea44305 commit 84319e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cpp/src/data/samplers/neighbor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ DENSEGraph LayeredNeighborSampler::getNeighbors(torch::Tensor node_ids, shared_p
}

if (outgoing_offsets.defined()) {
if (delta_outgoing_edges.size(0) > 0) {
if (delta_outgoing_offsets.size(0) > 0) {
outgoing_offsets = outgoing_offsets + delta_outgoing_edges.size(0);
outgoing_offsets = torch::cat({delta_outgoing_offsets, outgoing_offsets}, 0);
}
Expand Down

0 comments on commit 84319e5

Please sign in to comment.