评价此页

torch.Tensor.is_shared#

Tensor.is_shared()[源代码]#

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

对于 CUDA 张量,此值始终为 True