tensorflow and cuda version

tensorflow各个版本需要的CUDA版本以及Cudnn的对应关系

相应的网址为: tensorflow install for linux and macOS tensorflow install for windows

版本 Python 版本 编译器 编译工具 cuDNN CUDA
tensorflow_gpu-2.0.0-alpha0 2.7、3.3-3.6 GCC 4.8 Bazel 0.19.2 7.4.1以及更高版本 CUDA 10.0 (需要 410.x 或更高版本)
tensorflow_gpu-1.14.0 2.7、3.3-3.6 GCC 4.8 Bazel 0.24.1 7.4 10.0
tensorflow_gpu-1.13.0 2.7、3.3-3.6 GCC 4.8 Bazel 0.19.2 7.4 10.0
tensorflow_gpu-1.12.0 2.7、3.3-3.6 GCC 4.8 Bazel 0.15.0 7 9
tensorflow_gpu-1.11.0 2.7、3.3-3.6 GCC 4.8 Bazel 0.15.0 7 9
tensorflow_gpu-1.10.0 2.7、3.3-3.6 GCC 4.8 Bazel 0.15.0 7 9
tensorflow_gpu-1.9.0 2.7、3.3-3.6 GCC 4.8 Bazel 0.11.0 7 9
tensorflow_gpu-1.8.0 2.7、3.3-3.6 GCC 4.8 Bazel 0.10.0 7 9
tensorflow_gpu-1.7.0 2.7、3.3-3.6 GCC 4.8 Bazel 0.9.0 7 9
tensorflow_gpu-1.6.0 2.7、3.3-3.6 GCC 4.8 Bazel 0.9.0 7 9
tensorflow_gpu-1.5.0 2.7、3.3-3.6 GCC 4.8 Bazel 0.8.0 7 9
tensorflow_gpu-1.4.0 2.7、3.3-3.6 GCC 4.8 Bazel 0.5.4 6 8
tensorflow_gpu-1.3.0 2.7、3.3-3.6 GCC 4.8 Bazel 0.4.5 6 8
tensorflow_gpu-1.2.0 2.7、3.3-3.6 GCC 4.8 Bazel 0.4.5 5.1 8
tensorflow_gpu-1.1.0 2.7、3.3-3.6 GCC 4.8 Bazel 0.4.2 5.1 8
tensorflow_gpu-1.0.0 2.7、3.3-3.6 GCC 4.8 Bazel 0.4.2 5.1 8
recent article

tensorflow print

tf.Print(input, data, message=None, first_n=None, summarize=None, name=None)最低要求两个输入,input和data,input是需要打印的变量的名字,data要求是一个list,里面包含要打印的内容。 message是需要输出的错误信息 first_n指只记录前n次 summarize是对每个tensor只打印的条目数量,如果是None,对于每个输入tensor只打印3个元素 name是op的名字a cod...…

computer science deep learning tensorflow blogread
previous article

tensor shape

tf.shape()import tensorflow as tfx = tf.constant([2,3,4,5])shape = tf.shape(x)with tf.Session() as sess: print(sess.run(shape))tensor.get_shape().as_list()import tensorflow as tfx = tf.constant([2,3,4,5])shape1 = x.get_shape()shape2 = x.get_shape(...…

computer science deep learning tensorflow blogread