Skip to content

Fix auto_clip_fac in case of resuming from checkpoint#15

Open
greaber wants to merge 1 commit intoJianGoForIt:masterfrom
greaber:master
Open

Fix auto_clip_fac in case of resuming from checkpoint#15
greaber wants to merge 1 commit intoJianGoForIt:masterfrom
greaber:master

Conversation

@greaber
Copy link

@greaber greaber commented Sep 10, 2017

When resuming from a checkpoint, self.iter is not zero, but self._h_max is still undefined, so the optimizer would error. The PR checks directly if self._h_max is defined, which should always work.

@JianGoForIt
Copy link
Owner

Hi @greaber

Thanks for catching the bug and submit the PR. For this error, I think the better way to resolve is to get h_max into the states saved and loaded.

Cheers,

Jian

@greaber
Copy link
Author

greaber commented Sep 12, 2017

I see. Is there any reason h_max and h_min can't just be set to 0 in __init__ and treated exactly as other parts of the state?

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