评价此页

torch.Tensor.is_shared#

Tensor.is_shared()[source]#

检查张量是否在共享内存中。

对于 CUDA 张量,这始终为 True