[functorch] Explicit error message when calling torch.where(x) (pytorch/functorch#547)
Description:
- Explicit error message when calling torch.where(x)
- Added a test
Related to https://github.com/pytorch/functorch/issues/445#issuecomment-1050946177