提交

[Misc] Simplify the comment. (#6007)

Co-authored-by: Ubuntu <ubuntu@ip-172-31-28-63.ap-northeast-1.compute.internal>
这个提交包含在:
Hongzhi (Steve), Chen
2023-07-18 13:06:34 +08:00
提交者 GitHub
父节点 d90954b10c
当前提交 e7ff22f7be
+2 -3
查看文件
@@ -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;