[JIT] make fastrnns runnable on cpu (#41483)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/41483
Reviewed By: gmagogsfm
Differential Revision: D22580275
Pulled By: eellison
fbshipit-source-id: f2805bc7fa8037cfde7862b005d2940add3ac864