torch.Tensor.is_shared¶ Tensor.is_shared()[source][source]¶ 檢查 Tensor 是否在共享記憶體中。 對於 CUDA Tensor,這始終為 True。