Shortcuts

torch.Tensor.pin_memory

Tensor.pin_memory() 张量

如果张量尚未固定,则将其复制到固定内存中。