Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 31, 2023
1 parent 2722c17 commit 710a686
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pyg_lib/csrc/sampler/cpu/neighbor_kernel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,7 @@ class NeighborSampler {
add(row_start + index_data[i], global_src_node, local_src_node,

Check warning on line 230 in pyg_lib/csrc/sampler/cpu/neighbor_kernel.cpp

View check run for this annotation

Codecov / codecov/patch

pyg_lib/csrc/sampler/cpu/neighbor_kernel.cpp#L227-L230

Added lines #L227 - L230 were not covered by tests
dst_mapper, out_global_dst_nodes);
}
}
else {
} else {

Check warning on line 233 in pyg_lib/csrc/sampler/cpu/neighbor_kernel.cpp

View check run for this annotation

Codecov / codecov/patch

pyg_lib/csrc/sampler/cpu/neighbor_kernel.cpp#L233

Added line #L233 was not covered by tests
const auto rand = at::empty_like(weight).uniform_();
const auto key = (rand.log() / weight);
const auto index = std::get<1>(key.topk(count));
Expand Down

0 comments on commit 710a686

Please sign in to comment.