How did you install CUDA and Tensorflow on your WSL? I suggest to have a look at the following guide:
There, you can find instructions to install the CUDA toolkit and a container with Tensorflow. For the case of using the Tensorflow library directly from WSL, I suggest to install it after installing the CUDA toolkit and, then, compile Tensorflow on WSL.