![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
tensorflow
文章平均质量分 97
w55100
这个作者很懒,什么都没留下…
展开
-
Tensorflow 构建batch normalization时变量gama不被训练的问题
跑完GAN之后,重载模型,观察训练变量列表。 tvars = tf.trainable_variables() for i in tvars: print(i) ### output ### <tf.Variable 'g_w1:0' shape=(100, 32768) dtype=float32_ref> <tf.Variable 'g_b1:0' shape...原创 2019-02-27 16:00:56 · 8484 阅读 · 5 评论 -
GAN - Anime
前言 这是看了18年李宏毅(Hung-yi Lee)的GAN课程做的作业。 课程主页:http://speech.ee.ntu.edu.tw/~tlkagk/courses_MLDS18.html 基于tensorflow框架,第一次实现参考了别人的代码。 1.网络模型搭建 生成器4层,从小到大,经历一次全连接,2次上采样,3次卷积,最后tanh()激活后输出。 鉴别器5层,4次...原创 2019-03-03 18:15:48 · 1102 阅读 · 0 评论 -
Tensorflow savor.restore() "Key not found" 解决方案
一、错误信息 e:\ProgramData\Anaconda3\envs\nlp\lib\site-packages\tensorflow\python\training\saver.py in restore(self, sess, save_path) 1289 # a helpful message (b/110263146) 1290 rai...原创 2019-03-04 21:51:28 · 2838 阅读 · 0 评论 -
Tensorflow 获取model中的变量列表
前言 需求来自声明saver时需要指定变量列表。 var_list = saver._var_list print(type(var_list[0])) #output : <class 'tensorflow.python.ops.variables.RefVariable'> print(var_list[0]) #output : <tf.Variable ...原创 2019-03-04 22:39:57 · 5044 阅读 · 0 评论 -
Tensorflow开卷笔记
tensorflow,以下简称tf。 版本记录: anaconda自带的下面这些库必须先卸载了,装tensorflow的时候顺带装上它们。 不然总报错,vs2017 && vscode都会import报错,无法调试。 --- numpy-1.16.1 tensorflow-1.13.0rc2 matplotlib-3.0.2 一、定义+计算分离式设计 一开始接触容易...原创 2019-02-26 21:14:56 · 188 阅读 · 0 评论