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

Added option to restore local vars during validation #141

Closed
wants to merge 5 commits into from

Conversation

anayebi
Copy link
Contributor

@anayebi anayebi commented Aug 9, 2019

This partially addresses issue #140 in that it fixes the issue I was having with tf metrics which keeps local variables for streaming confusion matrices, which were not being initialized during validation (test_from_params) mode. However, if there is a use case where the user wanted to restore the values of these local variables from the checkpoint (rather than from scratch, which is usually what you want -- e.g. you want to restore the confusion matrix to 0 whenever you re-evaluate a model), then this does not address that problem. However, it fixes the primary reason I made the issue in the first place.

@anayebi anayebi requested a review from chengxuz August 9, 2019 23:04
Having load params dict act as a modifier rather than complete replac…
Updated tests to reflect that load_param_dict keeps all variables but…
@anayebi anayebi closed this Aug 19, 2019
@anayebi anayebi deleted the restorelocal branch August 19, 2019 23:22
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.

1 participant