aksnzhy closed pull request #13486: Fix small bug in csr sampling operator
URL: https://github.com/apache/incubator-mxnet/pull/13486
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/src/operator/contrib/dgl_graph.cc
b/src/operator/contrib/dgl_graph.cc
index 1bb47b89bde..c96b949a7b3 100644
--- a/src/operator/contrib/dgl_graph.cc
+++ b/src/operator/contrib/dgl_graph.cc
@@ -604,7 +604,7 @@ static void SampleSubgraph(const NDArray &csr,
std::unordered_map<dgl_id_t, neigh_list> neigh_mp;
size_t num_edges = 0;
while (!node_queue.empty() &&
- sub_vertices_count <= max_num_vertices ) {
+ sub_vertices_count < max_num_vertices ) {
ver_node& cur_node = node_queue.front();
dgl_id_t dst_id = cur_node.vertex_id;
if (cur_node.level < num_hops) {
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services