Skip to content

在tensorflow中的dropout中修改建议 #77

Description

@xingjianzhang1997

周大神您好,这份代码我认为还有改进的地方。
这份代码的TensorBoard在IPYthon和Jupyter等IDE中只能运行一次,第二次就会报错:InvalidArgumentError: You must feed a value for placeholder tensor ‘inputs/x_input’ with dtype float
我认为原因是用TensorBoard进行可视化的时候,出当前路径下不能存在一个以上的events文件。
解决方案有两种:(1)手动到该目录下删除event文件。
(2)加上tf.reset_default_graph(),这样就可以多次运行了。

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions