how to degrade cuDNN from 7.1 to 7.0

When I use tesorflow with gpu, there is an error raised:

E tensorflow/stream_executor/cuda/] Loaded runtime CuDNN library: 7103 (compatibility version 7100) but source was compiled with 7004 (compatibility version 7000).

cuda9 is installed now,
I try to install with: sudo dpkg -i libcudnn7-dev_7.0.5.15-1+cuda9.0_amd64.deb
and got error:
dpkg: dependency problems prevent configuration of libcudnn7-dev:
libcudnn7-dev depends on libcudnn7 (=; however:
Version of libcudnn7 on system is

dpkg: error processing package libcudnn7-dev (–install):
dependency problems - leaving unconfigured
Errors were encountered while processing:

how should I do to make my program successfully run?