自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(7)
  • 收藏
  • 关注

原创 TypeError: Value passed to parameter 'targets' has DataType float32 not in list of allowed values: i

程序报错:解决办法:label_holder = tf.placeholder(tf.float32,[batch_size])改为:label_holder = tf.placeholder(tf.int32,[batch_size])

2017-08-18 23:46:52 4739

原创 <urlopen error [Errno -3] Temporary failure in name resolution>

程序出现以下报错现象:解决办法,在程序开始加上:from urllib.request import urlopen

2017-08-18 23:40:30 6736 1

原创 ubuntu下安装pip3以及pygame教程

在Python2中安装pygame:sudo pip install pygame在Python3中安装pygame:sudo pip3 install pygame若出现以下现象,则表示未安装pip3因此需要先安装pip3:sudo apt-get install python3-setuptoolssudo easy_install

2017-08-14 13:51:29 1155

原创 RuntimeError: Attempted to use a closed Session.

在练习tensorflow时,如下代码:with tf.Session() as sess: init_op = tf.global_variables_initializer() sess.run(init_op) print(sess.run(w1)) print(sess.run(w2))#设定训练的轮数STEPS = 5000for i i

2017-08-01 00:17:42 32634 8

原创 Only call 'softmax_cross_entropy_with_logits' with named grguments(labels=...,logits=...)

运行一段代码:with tf.name_scope('cross_entropy'): cross_entropy = tf.reduce_mean(tf.nn.softmax_cross_entropy_with_logits(y,y_)) tf.summary.scalar('cross_entropy',cross_entropy)

2017-07-26 20:06:33 563

原创 main() takes 0 positional arguments but 1 was given

报错一:解决办法:在def()函数里加上self参数报错二:解决办法:将tf.image_summary()替换为tf.summary.image()

2017-07-26 19:23:51 3010

原创 Win7下TensorBoard的使用

tensorboard是TensorFlow的一个可视化工具,能够监控TensorFlow运行过程中的计算图,各种指标随着时间的变化趋势以及训练中使用到的图像等信息。注意:1、必须在终端启动tensorboard,输入tensorboard --logdir =/path/to/log;      2、如果在tensorboard中发现没找到graph,那么一般是路径没匹配好,修改一下路径

2017-07-25 17:11:47 681

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除