Unable to run RNN Model
@abhinavchawla7,
TensorFlow 2.10 was the last TensorFlow release that supported GPUs on native-Windows. Could you please provide any specific reason you are using WSL2 for 2.10, you can directly install the v2.12 on native-Windows which was supported. 
does the tf.test.is_gpu_available return False? If that's the case, then it definitely means the GPU is not configured correctly.

Also, the error message somehow indicating that the GPU device is not there:

Registered devices: [CPU,XLA_CPU,XLA_GPU]

XLA_GPU is not same as GPU.

May I know have you tried to execute the same code with the CPU only if yes is it working fine with the CPU ? If not please try it to run on either with CPU only or on Google Colab and check whether it is working as expected or not ? Thank you! I am on windows 11 and i have installed CUDA on native windows. 

As per the link: https://www.tensorflow.org/install/pip#windows-native, it is said that TensorFlow 2.10 was the last TensorFlow release that supported GPU on native-Windows. Starting with TensorFlow 2.11, you will need to install [TensorFlow in WSL2](https://tensorflow.org/install/pip#windows-wsl2), or install tensorflow or tensorflow-cpu and, optionally, try the [TensorFlow-DirectML-Plugin](https://github.com/microsoft/tensorflow-directml-plugin#tensorflow-directml-plugin-).

so when i install tensorflow >2.10.* i am unable to see the gpu on wsl2.....and on installing directml-plugin i am unable to run RNN model only CNN model works.....I have NVIDIA 16gb GPU (8gb dedicated) and 32GB CPU.....RNN model works fiine with CPU but kernel crashes on GPU....while CNN works easily on both  Awaiting for reply Still no reply Sorry, I don't think I can help much here.  Assigning this one back to you @sachinprasadhs. 
<details><summary>Click to expand!</summary> 
 
 ### Issue Type

Bug

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

No

### Source

source

### Tensorflow Version

2.10.0

### Custom Code

Yes

### OS Platform and Distribution

WSL2 on Windows 11

### Mobile device

_No response_

### Python version

3.8.12

### Bazel version

_No response_

### GCC/Compiler version

_No response_

### CUDA/cuDNN version

11.2/8.1.0

### GPU model and memory

NVIDIA Quadro P4200, 16gb

### Current Behaviour?

After setting up the system to use gpu from WSL2 on windows 11, I am able to connect to GPU. But when I run  a tensorflow model, I am able to run CNN model on GPU but when i try to run RNN model I get the below mentioned message and the model does not run:

"W tensorflow/core/framework/op_kernel.cc:1780] OP_REQUIRES failed at partitioned_function_ops.cc:115 : INVALID_ARGUMENT: No OpKernel was registered to support Op 'CudnnRNN' used by {{node CudnnRNN}} with these attrs: [seed=0, dropout=0, T=DT_FLOAT, input_mode="linear_input", direction="unidirectional", rnn_mode="lstm", seed2=0, is_training=true]
Registered devices: [CPU, GPU]
Registered kernels:
  <no registered kernels>

	 [[CudnnRNN]]"

### Standalone code to reproduce the issue

```shell
Trying RNN model with LSTM
```


### Relevant log output

_No response_</details>