tf.math.tan cannot accept integer variables.
@mazeltovlee 
I was able to reproduce the issue on Colab using TF v2.11 and tf-nightly. Please find the gist of [TF v2.11](https://colab.research.google.com/gist/tiruk007/104184ad07c155074f46055be5db683f/untitled117.ipynb) and [tf_nightly-2.13.0.dev20230212](https://colab.research.google.com/gist/tiruk007/c35fe01535a05b5c259ec9a384566714/untitled118.ipynb) for reference.It seems like we have to dig more into this issue, we will update soon here. 

Thank you! tf.math.tan seems to be able to accept integer values in a tensor as long as one or more non integer values are present. @mazeltovlee ,

Thanks for reporting this. There is some conflict here.I can see from file `tensorflow.python.ops.gen_math_ops` where `tan() `is accepting the args where `int` dtype is not in that list which is conflict to what documentation says. Need to check the code at C++ level for exact supported `dtypes` and will do necessary changes to documentation/code if needed any.

<img width="1457" alt="Screenshot 2023-02-20 at 12 41 05 PM" src="https://user-images.githubusercontent.com/116063290/220041333-19ab27ce-55f7-4e60-8f09-71838341dd78.png">


But please note that there is no Crash but only user error as Invalid Argument Error.Could you actually find crash apart from the Invalid Argument Error? 
 Hi @SuryanarayanaY ,

The error I am experiencing is the NotFoundError:

```
tensorflow.python.framework.errors_impl.NotFoundError: Could not find device for node: {{node Tan}} = Tan[T=DT_INT8]
All kernels registered for op Tan:
  device='XLA_CPU_JIT'; T in [DT_FLOAT, DT_DOUBLE, DT_INT32, DT_INT16, DT_INT8, DT_COMPLEX64, DT_INT64, DT_BFLOAT16, DT_COMPLEX128, DT_HALF]
  device='XLA_GPU_JIT'; T in [DT_FLOAT, DT_DOUBLE, DT_INT32, DT_INT16, DT_INT8, DT_COMPLEX64, DT_INT64, DT_BFLOAT16, DT_COMPLEX128, DT_HALF]
  device='CPU'; T in [DT_COMPLEX128]
  device='CPU'; T in [DT_COMPLEX64]
  device='CPU'; T in [DT_DOUBLE]
  device='CPU'; T in [DT_FLOAT]
  device='CPU'; T in [DT_BFLOAT16]
  device='CPU'; T in [DT_HALF]
  device='GPU'; T in [DT_COMPLEX128]
  device='GPU'; T in [DT_COMPLEX64]
  device='GPU'; T in [DT_DOUBLE]
  device='GPU'; T in [DT_FLOAT]
  device='GPU'; T in [DT_HALF]
 [Op:Tan]
```
I find no other error message apart from this one. @justacookiee , If the Tensor contains at least one float value then all other ints in the Tensor also considered as float only.

@mazeltovlee , As per error message there is supported kernel for this Op with "XLA_CPU_JIT" and also "XLA_GPU_JIT". Hence I tried to check this API wrapped under `tf.function` with` jit_compile=True` then also the API is not accepting the Integers.Please refer to attached [gist](https://colab.research.google.com/gist/SuryanarayanaY/96d7dcbec9d432900e76bd5436807b0f/59611.ipynb). As per the source code:

 Supported operators for device: XLA_GPU_JIT



> Tan | T={complex64,double,float,int32,int64}
> -- | --




Supported operators for device: XLA_CPU_JIT


> 
> Tan | T={complex64,double,float,int32,int64}
> -- | --




 Hi @mazeltovlee , Interger dtype was never intended to be supported for `Tan`, the fix has been made and submitted in the commit here https://github.com/tensorflow/tensorflow/commit/fc0095d3ee7dd21b6b61978a8dd2f526c7455605#diff-85cdc6a4e3fb58b63753cb91f5c637e489b4fa481a7e848afe0c02f026181536, showing the supported dtypes.
Document will be updated inline to the above commit once the Tensorflow 2.12 release is published. Thanks! Thanks for the fix and the explanation. I am closing this issue. Are you satisfied with the resolution of your issue?
<a href="https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/59611">Yes</a>
<a href="https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=No&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/59611">No</a>

<details><summary>Click to expand!</summary> 
 
 ### Issue Type

Bug

### Have you reproduced the bug with TF nightly?

Yes

### Source

source

### Tensorflow Version

2.11.0

### Custom Code

Yes

### OS Platform and Distribution

_No response_

### Mobile device

_No response_

### Python version

3.8

### Bazel version

_No response_

### GCC/Compiler version

_No response_

### CUDA/cuDNN version

_No response_

### GPU model and memory

_No response_

### Current Behaviour?

```shell
Following the documentation: https://www.tensorflow.org/api_docs/python/tf/math/tan, tf.math.tan should accept integer variables but it fails.
```


### Standalone code to reproduce the issue

```shell
tf.math.tan(tf.Variable(0, dtype="int8")  # crash
tf.math.tan(tf.Variable(0, dtype="int16")  # crash
tf.math.tan(tf.Variable(0, dtype="int32")  # crash
tf.math.tan(tf.Variable(0, dtype="int64")  # crash
```


### Relevant log output

```shell
The error message is similar to below:


    raise core._status_to_exception(e) from None  # pylint: disable=protected-access
tensorflow.python.framework.errors_impl.NotFoundError: Could not find device for node: {{node Tan}} = Tan[T=DT_INT8]
All kernels registered for op Tan:
  device='XLA_CPU_JIT'; T in [DT_FLOAT, DT_DOUBLE, DT_INT32, DT_INT16, DT_INT8, DT_COMPLEX64, DT_INT64, DT_BFLOAT16, DT_COMPLEX128, DT_HALF]
  device='CPU'; T in [DT_HALF]
  device='CPU'; T in [DT_BFLOAT16]
  device='CPU'; T in [DT_FLOAT]
  device='CPU'; T in [DT_DOUBLE]
  device='CPU'; T in [DT_COMPLEX64]
  device='CPU'; T in [DT_COMPLEX128]
 [Op:Tan]
```
```
</details>