[Question] Is it possibile to use `jit_compile=True` (XLA) when input is a string?
@miticollo No, you cannot directly use jit_compile=True (XLA) with string inputs in TensorFlow. XLA is designed for numerical computations, and strings are not directly supported. Thank you! Thank u for your clarification! @miticollo Thank you for your response here. Could you please move this issue to closed status if it is resolved?
Thank you!  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/66074">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/66074">No</a>

# TL; DR

See [this notebook](https://colab.research.google.com/drive/1vtxKx9O3NJPwET6NOgU0a2mFwBf64sCA?usp=sharing) on Colab.

# Long version

Let's consider the following function:
```python
def f(s):
    return s
```
Then we convert it into graph:
```python
tf_f = tf.function(f)
tf_f_xla = tf.function(f, jit_compile=True)
```
Finally run them:
```python
tf_f(tf.constant("Hello World!"))
tf_f_xla(tf.constant("Hello World!"))
```
Unfortunately the last statement fails:
```text
InvalidArgumentError: Failed copying input tensor from /job:localhost/replica:0/task:0/device:CPU:0 to /job:localhost/replica:0/task:0/device:GPU:0 in order to run __inference_f_23: Can't copy Tensor with type string to device /job:localhost/replica:0/task:0/device:GPU:0. [Op:__inference_f_23]
```
# About question

I don't think this is an issue. But since I'm learning I would want to know why this happens.