enabled AT_USE_JITERATOR() for `tan` and `tanh` kernels. (#102427)
This MR fixes the test failures for `jiterator` implemenation for `tan` and `tanh` Unary kernels as mentioned in #100842.
The failures were fixed by adjusting tolerances but some failures were in `test_unary_ufuncs.py` required adjusting input values as well. Since the jiterator kernels are using libstdc++, the supported input range is smaller than thrust implementation.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/102427
Approved by: https://github.com/malfet