(self, condition, x=None, y=None)
| 2316 | return a |
| 2317 | |
| 2318 | def where(self, condition, x=None, y=None): |
| 2319 | if x is None and y is None: |
| 2320 | return torch.where(condition) |
| 2321 | else: |
| 2322 | return torch.where(condition, x, y) |
| 2323 | |
| 2324 | def copy(self, a): |
| 2325 | return torch.clone(a) |