Skip to content

marshal: Set compile to False when loading the model #238

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

Conversation

dpoulopoulos
Copy link
Member

The model will load in inference mode and won't be ready for further training.
If the user wants to train it further he would have to compile it again.
However, this is preferable in order to support custom loss functions and optimizers.

For example, if the user has trained a model with a custom loss function
or a custom optimizer and tries to load it with compile set to True
a ValueError will occur specifying that it does not recognize this loss function
or optimizer. Thus the step will fail on KFP.

Signed-off-by: Dimitris Poulopoulos [email protected]

@dpoulopoulos dpoulopoulos added the bug Something isn't working label Oct 19, 2020
@dpoulopoulos dpoulopoulos self-assigned this Oct 19, 2020
The model will load in inference mode and won't be ready for further training.
If the user wants to train it further he would have to compile it again.
However, this is preferable in order to support custom loss functions and optimizers.

For example, if the user has trained a model with a custom loss function
or a custom optimizer and tries to load it with compile set to True
a ValueError will occur specifying that it does not recognize this loss function
or optimizer. Thus the step will fail on KFP.

Signed-off-by: Dimitris Poulopoulos <[email protected]>
Reviewed-by: Stefano Fioravanzo <[email protected]>
@StefanoFioravanzo StefanoFioravanzo force-pushed the feature-dimpo-custom-loss branch from 2e10d86 to 5f5521a Compare October 19, 2020 07:38
@StefanoFioravanzo StefanoFioravanzo merged commit 56e087b into kubeflow-kale:master Oct 19, 2020
@StefanoFioravanzo StefanoFioravanzo deleted the feature-dimpo-custom-loss branch October 19, 2020 07:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants