You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Summary:
In ATen, integral `Scalar`s are allowed to be extracted as `bool`. Example:
```
torch.ops.aten.add.out(torch.Tensor([0, 1]).to(dtype=torch.bool), torch.Tensor([1, 1]).to(dtype=torch.bool), alpha=4, out=torch.zeros(1).to(dtype=torch.bool))
```
This updates `extract_scalar` for the `bool` case to match this behaviour, where previously it would fail unless the `Scalar` was boolean.
Reviewed By: manuelcandales
Differential Revision: D46990102
fbshipit-source-id: 6d2875cfafbe2723cbf6855af55ded54c154e970
0 commit comments