torch.Tensor.coalesce¶ Tensor.coalesce() → Tensor¶ 如果 self 是 未合并的张量,则返回 self 的合并副本。 如果 self 是合并的张量,则返回 self。 警告 如果 self 不是稀疏 COO 张量,则抛出错误。