![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
tensorflow
liubin9043
The powers of heaven help those who help themselves.
展开
-
tensorflow 出现ImportError: cannot import name graph_util
from tensorflow.python.framework import graph_util 此句出现错误 ImportError: cannot import name graph_util 将此句修改为 CHANGE from `tensorflow.python.framework import graph_util` TO from `tensorf转载 2017-12-22 10:29:47 · 3984 阅读 · 1 评论 -
mac10.13.2+python3.6.3 tensorflow安装
前景概述:今天安装tensorflow,一直报如下的错。mac自带python2.7,安装tensorflow会去找2.7,但是我电脑已经安装了最新的python3.6.3,这是为啥?搜了一圈,问题出在pip,采用pip3可以安装适用于3.6的tensorflow。 liubindeMBP:~ liubin$ pip install tensorflow Collecting te原创 2018-01-30 00:02:57 · 1295 阅读 · 0 评论 -
tf.placeholder函数说明
函数: tf.placeholder( dtype, shape=None, name=None ) dtype:数据类型。常用的是tf.float32,tf.float64等数值类型 shape:数据形状。默认是None,就是一维值,也可以是多维(比如[2,3], [None, 3]表示列是3,行不定) name:名称 为什么要用placeholde...转载 2019-08-03 14:48:01 · 749 阅读 · 0 评论 -
tf.truncated_normal函数说明
函数: tf.truncated_normal( shape, mean=0.0, stddev=1.0, dtype=tf.float32, seed=None, name=None ) 参数: shape: 一维的张量,也是输出的张量。 mean: 正态分布的均值。 stddev: 正态分布的标准差。 dtype: 输出的...转载 2019-08-03 14:51:13 · 537 阅读 · 0 评论