torch.Tensor.where¶
- Tensor.where(condition, y) → Tensor
self.where(condition, y)
等价于torch.where(condition, self, y)
。参见torch.where()
self.where(condition, y)
等价于 torch.where(condition, self, y)
。参见 torch.where()
为了分析流量并优化您的体验,我们在本网站上使用 cookies。通过点击或导航,您同意允许我们使用 cookies。作为本网站的当前维护者,适用 Facebook 的 Cookies 政策。了解更多信息,包括关于可用控制的信息:Cookies 政策。