zoukankan      html  css  js  c++  java
  • Variable Generator/dense/kernel already exists, disallowed.

    Jupyter notebook运行下面程序:https://github.com/MorvanZhou/Tensorflow-Tutorial/blob/master/tutorial-contents/406_GAN.py
    上面程序是关于GAN的!
    出现下面问题:

    ValueError: Variable Generator/dense/kernel already exists, disallowed. Did you mean to set reuse=True or reuse=tf.AUTO_REUSE in VarScope? Originally defined at: File "<ipython-input-15-11d84ae913e7>", line 34, in <module> G_l1 = tf.layers.dense(G_in, 128, tf.nn.relu) File "/home/zhumeiqiang/anaconda3/lib/python3.6/site-packages/IPython/core/interactiveshell.py", line 2910, in run_code exec(code_obj, self.user_global_ns, self.user_ns) File "/home/zhumeiqiang/anaconda3/lib/python3.6/site-packages/IPython/core/interactiveshell.py", line 2850, in run_ast_nodes if self.run_code(code, result):
     

    解决方案:

      jupyter中有kernel选项,点击选择 “ Restart & RunAll ”,即可解决问题。

    参考: https://blog.csdn.net/snailNL/article/details/80642695

  • 相关阅读:
    calc PI
    c# 设置水印,消除水印
    设置windows10 背景颜色
    C# 获取当前路径
    反编译工具
    c# 窗口API,以及全屏锁定一些tips
    c# 几种singleton 实现
    List<T> JIT 分配策略
    软件工程
    mariaDB 安装/卸载+启动/关闭 服务
  • 原文地址:https://www.cnblogs.com/thebreakofdawn/p/9293229.html
Copyright © 2011-2022 走看看