For TensorFlow version check:
$ python3
>>> import tensorflow as tf
>>> tf.VERSION
For CUDA version check:
$ nvcc --version
For TensorFlow version check:
$ python3
>>> import tensorflow as tf
>>> tf.VERSION
For CUDA version check:
$ nvcc --version