indexing: throw exception for masks with dtype=uint8 (#34418)
Summary:
Fixes https://github.com/pytorch/pytorch/issues/33751
Pull Request resolved: https://github.com/pytorch/pytorch/pull/34418
Differential Revision: D20776164
Pulled By: ngimel
fbshipit-source-id: f4ebaabf427d7967f2f317235562f91c8f9216f0