How can I install Tensorflow and PyTorch together?

I installed Tensorflow and PyTorch in ubuntu 22.04 with CUDA=11.8.
but I got the error below.
“return Variable._execution_engine.run_backward( # Calls into the C++ engine to run the backward pass
RuntimeError: GET was unable to find an engine to execute this computation”

I looked it up and it turns out it’s because of a problem with CUDNN, but can you figure out why?

Do I need to set any of the following as environment variables?:
#export PATH=“/usr/local/cuda-11.8/bin:$PATH”
#export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda-11.8/lib64/
#export PATH=/usr/local/cuda-11.8/bin${PATH:+:${PATH}}
#export LD_LIBRARY_PATH=/usr/local/cuda-11.8/lib64
#export CUDA_HOME=/usr/local/cuda-11.8
#export PATH=/usr/local/cuda-11.8/bin:$PATH
#export LD_LIBRARY_PATH=/usr/local/cuda-11.8/lib64:$LD_LIBRARY_PATH

Hi @kw051039
This should help you