torch.Tensor.where

Tensor.where(condition, y) → Tensor

self.where(condition, y) 等同于 torch.where(condition, self, y)。详情参见 torch.where()

本页目录