
tensorflow
文章平均质量分 54
---Lavender---
在读研究生
展开
-
遇到代理问题时自动下载MNIST数据集的Python代码
下载了input_data.py文件之后出现代理问题,无法下载网页内容,于是设置了全局代理。原创 2017-04-14 14:42:14 · 1542 阅读 · 0 评论 -
word2vec 词向量
初学TensorFlow的词向量模块,基本例程word2vec中有一句loss = tf.reduce_mean(tf.nn.nce_loss(nce_weights,nce_biases, train_labels,embed,num_sampled, voc_size)),运行之后出现以下错误:TypeError: Input 'y' of 'Mul' Op has type floa原创 2017-06-13 13:41:27 · 691 阅读 · 0 评论 -
tensorflow加载saver.restore目录报错
这个错误是最新的错误哈,目前只在tensorflow上的github仓库上面有提出,所以你在百度上面找不到。是个tensorflow的bug十天前提出的,只有github仓库上一个地方有提出。NotFoundError (see above for traceback): Unsuccessful TensorSliceReader constructor: Failed转载 2017-08-07 09:29:32 · 5359 阅读 · 4 评论 -
tensorflow安装时遇到的问题
tensorflow安装成功,import tensorflow时出错。ImportError: DLL load failed: 内存位置访问无效。During handling of the above exception, another exception occurred:Traceback (most recent call last):File "原创 2017-04-19 20:37:00 · 6095 阅读 · 0 评论 -
tensorflow中模型的保存和恢复
import tensorflow as tfimport numpy as npx = tf.placeholder(tf.float32,shape=[None,1])y = 4*x+4w = tf.Variable(tf.random_normal([1],-1,1))b = tf.Variable(tf.zeros([1]))y_predict = w * x+blos原创 2017-10-20 09:12:25 · 530 阅读 · 0 评论