
Tensorflow
大鲨鱼冲鸭
一步步往上爬~。
个人邮箱:qilong.zhang@std.uestc.edu.cn。
Github: https://github.com/qilong-zhang
展开
-
Tensorflow:UnknownError: Failed to get convolution algorithm. This is probably because cuDNN failed
Tensorflow报错解决:UnknownError: Failed to get convolution algorithm. This is probably because cuDNN failed to initialize, so try looking to see if a warning log message was printed above.方法一:可能是Tensor...原创 2019-01-17 17:57:57 · 19974 阅读 · 61 评论 -
Tensorflow:tf.gradient()用法以及参数stop_gradient理解
tf.gradient()tf.gradients( ys, xs, grad_ys=None, name='gradients', colocate_gradients_with_ops=False, gate_gradients=False, aggregation_method=None, stop_gradients=Non...原创 2019-01-20 19:48:05 · 11048 阅读 · 1 评论 -
从tensorflow.examples.tutorials.mnist导入input_data出现错误并弹窗的解决方案
Tensorflow报错解决:import numpy as npimport sklearn.preprocessing as prepimport tensorflow as tffrom tensorflow.examples.tutorials.mnist import input_data # 报错我今天在使用tensorflow.examples.tutorials.mn...原创 2019-02-01 21:10:14 · 23206 阅读 · 3 评论 -
训练神经网络报错Upgrade your CuDNN library to match问题的详细解决过程
Upgrade your CuDNN library to match装过TensorFlow GPU版本的萌新可能以为自己的CuDNN已经装好了,其实未必,因为今天我发现了一个问题,而在之前都没出现过。报错内容: Loaded runtime CuDNN library: 7102 (compatibility version 7100) but source was compil...原创 2018-04-30 09:18:48 · 2584 阅读 · 0 评论 -
tensorflow.python.framework.errors_impl.NotFoundError: Failed to create a NewWriteableFile:
Tensorflow报错信息:tensorflow.python.framework.errors_impl.NotFoundError: Failed to create a NewWriteableFile: ./raccoon_dataset/tfrecords/raccoon.tfrecords : ϵͳ\udcd5Ҳ\udcbb\udcb5\udcbdָ\udcb6\udca8\udc...原创 2019-02-14 17:11:18 · 14689 阅读 · 21 评论 -
MOOC笔记——用Tensorflow制作数据集
tfrecords文件的简介:tfrecords是一种二进制文件,可以将图片和标签制作成该格式的文件。使用tfrecords进行数据读取,会提高内存利用率。存储训练数据的方法:使用tf.train.Example()存储,训练数据的特征用键值对的形式表示,例如:'img_raw': (图片)值 'label': 标签值(值是Bytelist/Floatlist/I...原创 2018-04-23 15:17:29 · 5668 阅读 · 9 评论 -
Tensorflow:NotFoundError (see above for traceback): Key style_weight/Variable not found in checkpoin
Tensorflow报错解决:NotFoundError (see above for traceback): Key style_weight/Variable not found in checkpoint在 saver.restore()加载的前面,需要添加 tf.reset_default_graph(),作用是 清除默认图的堆栈,并设置全局图为默认图删除ckpt存储位置的全部文...原创 2019-01-30 17:37:01 · 1004 阅读 · 0 评论 -
Tensorflow:tf.assign()函数的使用方法及易错点
引言:当大家在使用tf.assign()这个函数时,如果不是很了解这个函数的用法,很容易出错,而且似乎对应不同的tf版本其操作结果也会有细微的差别,本文是基于1.9.0版本的tf进行描述的,对于更新的版本而言应该结论是一样的,但对于比较旧的版本,可能就会有细微差别。首先我们看一下源码中的返回值说明:update = tf.assign(ref, new_value) # 平时的使...原创 2019-04-05 11:31:05 · 13856 阅读 · 4 评论