![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
tensorflow
Rui012345
love web
展开
-
tensorflow 队列管理之同步操作
# -*- coding: utf-8 -*-"""Created on Thu Oct 25 09:49:34 2018@author: Grey"""import tensorflow as tf#模拟同步 先处理数据再取数据训练#会话运行#1.定义队列Q=tf.FIFOQueue(3,tf.float32)#放入数据,列表,否则认为是张量enq_many=Q.enq...原创 2018-10-25 10:15:32 · 251 阅读 · 2 评论 -
tensorflow 队列管理之异步操作
# -*- coding: utf-8 -*-"""Created on Thu Oct 25 09:49:34 2018@author: Grey"""import tensorflow as tf#模拟异步子线程存入样本,主线程读取样本#1.定义一个队列,100Q = tf.FIFOQueue(100,tf.float32)#2.定义子线程做的操作,循环+1 放入队列...原创 2018-10-25 10:52:48 · 804 阅读 · 0 评论 -
tensorflow 出错module 'tensorflow' has no attribute 'layers'
出错:module 'tensorflow' has no attribute 'layers'解决方法:由于已经安装的tensorflow是0.x的版本,0.x版本没有layers模块所以程序出错,需要重新安装tensorflow 1.0以上的版本,即更新tensorflow版本。查看目前tensorflow版本pip list显示:如下图,此时的tensorflow为0.12...原创 2018-10-31 12:21:27 · 37209 阅读 · 6 评论 -
利用GAN生成MNIST
# -*- coding: utf-8 -*-"""Created on Tue Oct 30 10:34:40 2018@author: Grey"""import tensorflow as tffrom tensorflow.examples.tutorials.mnist import input_dataimport matplotlib.pyplot as pltim...原创 2018-10-31 15:29:00 · 433 阅读 · 0 评论 -
tensorflow实现简单的GAN(生成对抗网络)
打印损失:迭代变化:可看到图像逐渐变得清晰。 import tensorflow as tfimport numpy as npimport pickleimport matplotlib.pyplot as pltfrom tensorflow.examples.tutorials.mnist import input_datamnist = input_d...原创 2018-11-05 14:59:11 · 4125 阅读 · 0 评论 -
tensorboard ImportError: DLL load failed: 找不到指定的模块。
问题:tensorboard --logdir=E:\logs 报错错误如下:Traceback (most recent call last): File "d:\anoconda5.2.0\envs\tensorflow\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 18, in swig_impo...原创 2019-04-22 13:29:35 · 3385 阅读 · 8 评论