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(
const auto num_neighbors = indptr_data[nid + 1] - offset;
if (num_neighbors == 0) {
// Initialization is performed here because all tensors will be
// concatenated in the master thread, and having an undefined
// tensor during concatenation can result in a crash.
// To avoid crashing during concatenation in the master thread,
// initializing with empty tensors.
picked_neighbors_per_node[i] =
torch::tensor({}, indptr_.options());
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