Hi,
Yes pytorch ships with the latest cudnn binary for best performances.
You will need to get both installs using the same version. Either by finding a version of Tensorflow that works with the latest cudnn or by compiling one of the two framework from source using the cudnn version expected by the other one such that they match.