评价此页

torch.Tensor.is_pinned#

Tensor.is_pinned()#

如果此张量位于 pinned memory 中,则返回 true。默认情况下,pinned memory 的设备将是当前的 加速器