代码之家  ›  专栏  ›  技术社区  ›  Hong Cheng

夜间安装的TF是新的1.5 TF吗?

  •  0
  • Hong Cheng  · 技术社区  · 6 年前

    今天我听说有一个新版本1.5 TF,它具有良好的动态图支持。

    我还发现有一种新的夜间安装方法。

    那么,这种夜间安装方法是安装新版本TF吗?

    chg0901@ubuntu:~$ python3
    Python 3.5.2 (default, Nov 23 2017, 16:37:01) 
    [GCC 5.4.0 20160609] on linux
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import tensorflow as tf
    2018-01-06 16:49:32.242801: I tensorflow/core/platform/s3/aws_logging.cc:53] Initializing Curl library
    >>> print(tf.__version__)
    1.6.0-dev20180105
    >>> x = [[2.]]
    >>> m = tf.matmul(x,x)
    >>> print(m)
    Tensor("MatMul:0", shape=(1, 1), dtype=float32)
    >>> print(tf.Session().run(m))
    2018-01-06 16:51:25.418750: I tensorflow/core/platform/cpu_feature_guard.cc:137] Your CPU supports instructions that this TensorFlow binary was not compiled to use: SSE4.1 SSE4.2 AVX FMA
    [[ 4.]]
    
    1 回复  |  直到 6 年前
        1
  •  1
  •   gunan    6 年前

    目前TF 1.5.0rc0已推出。您可以通过以下命令安装最新版本的候选版本:

    pip install tensorflow --pre
    

    检查其版本时,您将看到如下内容:

    > import tensorflow as tf
    > tf.__version__
    '1.5.0-rc0'
    

    您拥有的安装是每晚从主分支构建的“夜间”。您看到的版本字符串, 1.6.0-dev20180105 意味着下一个版本是 1.6 它是建立在 2018-01-05 .