bug feedback
TF API is different than PT API. They don't need to have exactly the same signature. Not a bug 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/60316">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/60316">No</a>

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

Bug

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

No

### Source

source

### Tensorflow Version

tf2.5

### Custom Code

Yes

### OS Platform and Distribution

Windows 10 21H2 9044.2604

### Mobile device

_No response_

### Python version

3.7

### Bazel version

_No response_

### GCC/Compiler version

_No response_

### CUDA/cuDNN version

11.6

### GPU model and memory

_No response_

### Current Behaviour?

A robustness problem happened!
When the number of inputs is greater than 1, the tanh function can still compute the inputs without throwing any exception.
But in other framework like PyTorch, I can get exception message immediately.

### Standalone code to reproduce the issue

```shell
import tensorflow as tf
import torch
import mindspore as ms

if __name__ == '__main__':

    try:
        print(tf.tanh(tf.ones(2, 2), tf.ones(2, 2)))
    except Exception as e:
        print(e)

    try:
        print(torch.tanh(torch.ones(2, 2), torch.ones(2, 2)))
    except Exception as e:
        print(e)

    try:
        print(ms.ops.Tanh(ms.ops.Ones()((2, 2), ms.float32)), ms.ops.Ones()((2, 2), ms.float32))
    except Exception as e:
        print(e)
```


### Relevant log output

```shell
tf.Tensor([0.76159416 0.76159416], shape=(2,), dtype=float64)
tanh() takes 1 positional argument but 2 were given
too many positional arguments
```
</details>