Add tanh to c10::cuda::compat (#31844)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/31844
Add tanh to c10::cuda::compat
Test Plan: unittest
Reviewed By: bddppq
Differential Revision: D19277230
fbshipit-source-id: d2cceea58722393ecb90aacec05b692dbb92d467