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

[Feature Request] Clone model #40

Closed
technight opened this issue Feb 15, 2021 · 2 comments · Fixed by #109
Closed

[Feature Request] Clone model #40

technight opened this issue Feb 15, 2021 · 2 comments · Fixed by #109
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@technight
Copy link

As far as I can tell the API does not allow you to directly clone a model? Specifically I want an identical model with all the same layers, weights, optimizer settings etc.

The only current solution I can find is to save and load the model from disk, but it would be nice to have the ability to copy without spending time on all the IO required for saving and loading from disk.

@zaleslaw
Copy link
Collaborator

@technight great idea, do you have any ideas about possible or required API?

@technight
Copy link
Author

I think something simple like .clone() or .copy() on InferenceModel would be sufficent for my needs

@zaleslaw zaleslaw self-assigned this May 18, 2021
@zaleslaw zaleslaw added the enhancement New feature or request label Jun 2, 2021
@zaleslaw zaleslaw added this to the 0.3 milestone Jun 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants