评价此页

torch.Tensor.coalesce#

Tensor.coalesce() Tensor#

返回 self 的合并副本,如果 self 是一个未合并的张量

如果 self 是一个已合并的张量,则返回 self

警告

如果 self 不是稀疏COO张量,则抛出错误。