ubuntu 16.04 安装Tensorflow(CPU)

1、安装tensorflow

      sudopip install --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.8.0rc0-cp27-none-linux_x86_64.whl

      安装成功:

      ubuntu 16.04 安装Tensorflow(CPU)

2、测试

      import tensorflow as tf

      a=tf.constant([1.0,2.0,3.0],shape=[3],name='a')

      b=tf.constant([1.0,2.0,3.0],shape=[3],name='b')

      c=a+b

      sess=tf.Session(config=tf.ConfigProto(log_device_placement=True))

      print sess.run(c)

      ubuntu 16.04 安装Tensorflow(CPU)


相关文章:

  • 2022-12-23
  • 2021-12-05
  • 2021-05-18
  • 2021-12-24
  • 2021-06-17
  • 2022-12-23
  • 2022-01-14
  • 2022-12-23
猜你喜欢
  • 2021-09-13
  • 2021-05-29
  • 2022-12-23
  • 2021-05-02
  • 2021-10-20
  • 2021-07-04
相关资源
相似解决方案