tf.image.adjust_gamma outputs incorrect error message for string input
@drewshark,
I tried to execute the mentioned code on tensorflow v2.13, where it was executed with the error stating that `AttributeError: image dtype must be either floating point or integer` which was clearly mentioning to the user that the dtype should be either floating or interger. Kindly find the gist of it [here](https://colab.research.google.com/gist/tilakrayal/2caebf81876962bd026cc0dbbaf32cb4/untitled1233.ipynb). Thank you!

 Thanks for your response, I tried it on tf1.12.0. It seems that this issue has been fixed. 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/61220">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/61220">No</a>

### Issue type

Bug

### Have you reproduced the bug with TensorFlow Nightly?

Yes

### Source

source

### TensorFlow version

2.12.0

### Custom code

Yes

### OS platform and distribution

_No response_

### Mobile device

_No response_

### Python version

_No response_

### Bazel version

_No response_

### GCC/compiler version

_No response_

### CUDA/cuDNN version

_No response_

### GPU model and memory

_No response_

### Current behavior?

When giving tf.image.adjust_gamma a string inputs, it outputs misleading error messages:
```
ValueError: Failed to convert a NumPy array to a Tensor (Unsupported object type float).
```

### Standalone code to reproduce the issue

```shell
import tensorflow as tf
t = tf.constant([], dtype=tf.string)
i = tf.image.adjust_gamma(t, gamma=0.1)
```
```


### Relevant log output

_No response_