Git Product home page Git Product logo

Comments (8)

jkahn avatar jkahn commented on May 7, 2024

FWIW this crash seems to be happening in the summary-writer train-steps, not the "vanilla" run iterations.

from prettytensor.

jkahn avatar jkahn commented on May 7, 2024

setting save_path to None avoids this crash but results in no checkpoints. :(

from prettytensor.

eiderman avatar eiderman commented on May 7, 2024

I've dug into it and it appears that the problem is the inference graph by default creates summaries, which depend on the placeholder.

Default summaries are great for diagnosing the problem, but I think fixing this correctly requires a scoped method to disable summaries and/or put them in a different graph collection so that the training sub-graph doesn't pick up a dependency on the inference sub-graph.

from prettytensor.

jkahn avatar jkahn commented on May 7, 2024

I don't really follow this explanation, but if I remove the inference graph and the calls to it, I can indeed make it train with a non-empty save path. But I see no new files showing up in the specified save path, so I wonder if I've missed something.

Is there another workaround to disable the summaries in the inference graph?

from prettytensor.

jkahn avatar jkahn commented on May 7, 2024

I don't really follow this explanation, but if I remove the inference graph and the calls to it, I can indeed make it train with a non-empty save path. But I see no new files showing up in the specified save path, so I wonder if I've missed something.

Is there another workaround to disable the summaries in the inference graph?

from prettytensor.

jkahn avatar jkahn commented on May 7, 2024

Should I change something in create_model so that if phase==infer it doesn't construct the extra summaries?

from prettytensor.

eiderman avatar eiderman commented on May 7, 2024

There wasn't an option before. With the most recent push you can control where summaries are placed (which graph collection has them).

I will package it up later this week for pip.

from prettytensor.

eiderman avatar eiderman commented on May 7, 2024

Uploaded package to pip; see CHANGELOG for more details.

from prettytensor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.