評價此頁

torch._foreach_zero_#

torch._foreach_zero_(self: List[Tensor]) None#

torch.zero() 應用於輸入列表中的每個 Tensor。