Tensorflow深度学习-(一)Tensorflow1.12环境搭建(CPU版)
tensorflow
一个面向所有人的开源机器学习框架
项目地址:https://gitcode.com/gh_mirrors/te/tensorflow

·
一、 安装Anaconda
Anaconda是一个集成工具,可以通过这个软件下载所需的环境,下载最新版本并安装。
二、创建Tensorflow环境
1. 在开始菜单打开Anaconda Prompt,执行语句,创建Tensorflow环境:
conda create -n tensorflow python=3.6
2. 执行语句,切换到Tensorflow环境:
activate tensorflow
3. 安装基本依赖库
conda install anaconda
4. 安装Tensorflow(cpu版本)
conda install tensorflow
三、安装完就可以测试了
在开始菜单打开 Spyder(tensorflow), 输入代码
import tensorflow as tf
input1 = tf.placeholder(tf.float32)
input2 = tf.placeholder(tf.float32)
temp = tf.multiply(input1, input2)
with tf.Session() as session:
print(session.run(temp, feed_dict={input1: 23.0, input2: 3.0}))
执行,得到如下结果:




一个面向所有人的开源机器学习框架
最近提交(Master分支:12 天前 )
4f64a3d5
Instead, check for this case in `ResolveUsers` and `ResolveOperand`, by querying whether the `fused_expression_root` is part of the `HloFusionAdaptor`.
This prevents us from stepping into nested fusions.
PiperOrigin-RevId: 724311958
12 天前
aa7e952e
Fix a bug in handling negative strides, and add a test case that exposes it.
We can have negative strides that are not just -1, e.g. with a combining
reshape.
PiperOrigin-RevId: 724293790
12 天前
更多推荐
所有评论(0)