Revert "Remove sync for randperm on small tensors. (#54113)" (#57299)
Summary:
This reverts commit e8c268746b297efa988e03abc61ff22203bf3980.
It occasionally produces wrong results.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/57299
Reviewed By: wat3rBro
Differential Revision: D28102706
Pulled By: ngimel
fbshipit-source-id: d7618e104d854c3b96aa502fb4e30041b9aab5df
Author
Natalia Gimelshein