評價此頁

torch.Tensor.is_shared#

Tensor.is_shared()[原始碼]#

檢查張量是否在共享記憶體中。

對於 CUDA 張量,此值始終為 True