Unverified Commit e7ff22f7 authored by Hongzhi (Steve), Chen's avatar Hongzhi (Steve), Chen Committed by GitHub
Browse files

[Misc] Simplify the comment. (#6007)


Co-authored-by: default avatarUbuntu <ubuntu@ip-172-31-28-63.ap-northeast-1.compute.internal>
parent d90954b1
...@@ -166,9 +166,8 @@ c10::intrusive_ptr<SampledSubgraph> CSCSamplingGraph::SampleNeighbors( ...@@ -166,9 +166,8 @@ c10::intrusive_ptr<SampledSubgraph> CSCSamplingGraph::SampleNeighbors(
const auto num_neighbors = indptr_data[nid + 1] - offset; const auto num_neighbors = indptr_data[nid + 1] - offset;
if (num_neighbors == 0) { if (num_neighbors == 0) {
// Initialization is performed here because all tensors will be // To avoid crashing during concatenation in the master thread,
// concatenated in the master thread, and having an undefined // initializing with empty tensors.
// tensor during concatenation can result in a crash.
picked_neighbors_per_node[i] = picked_neighbors_per_node[i] =
torch::tensor({}, indptr_.options()); torch::tensor({}, indptr_.options());
continue; continue;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment