Skip to content

Fix auto_clip_fac in case of resuming from checkpoint#15

Open
greaber wants to merge 1 commit into
JianGoForIt:masterfrom
greaber:master
Open

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

Conversation

@greaber

@greaber greaber commented Sep 10, 2017

Copy link
Copy Markdown

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
Copy Markdown
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

greaber commented Sep 12, 2017

Copy link
Copy Markdown
Author

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