Skip to content

Fix bug where constant LR in pretraining will throw TF error #2977

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

Merged
merged 1 commit into from
Nov 26, 2019

Conversation

ervteng
Copy link
Contributor

@ervteng ervteng commented Nov 26, 2019

When setting pretraining steps to 0, we use a constant learning rate. However, since the learning rate is now part of the feed_dict, TF will try to execute it as a tensor and it will fail. This changes the learning rate to always be a Tensor, and adds a test.

@ervteng ervteng requested a review from chriselion November 26, 2019 19:36
@ervteng ervteng merged commit b7ea28c into develop Nov 26, 2019
@delete-merged-branch delete-merged-branch bot deleted the develop-fixinfinitepretrain branch November 26, 2019 19:44
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 17, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants