torch.Tensor.where¶ Tensor.where(condition, y) → Tensor¶ self.where(condition, y) 等同于 torch.where(condition, self, y)。参见 torch.where()。