Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop adding new ops to the graph object with every snapshot and lr change. #16

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ICapalija
Copy link
Contributor

When you call "tf.assign(...)" new tensorflow op is added to the graph object and you are calling it with every snapshot and learning rate update. When graph is growing, memory consumption is increasing until there is no more (and that's a big problem with VGG). You need to define your graph before starting the learning process.

Copy link
Contributor

@ahmedammar ahmedammar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have included this commit in my pull request #28, I removed the learning rate related hunk since I have already pulled in #11 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants