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

Save class definition (instead of instance) #91

Closed
adriangonz opened this issue Apr 8, 2021 — with Board Genius Sync · 0 comments · Fixed by #105
Closed

Save class definition (instead of instance) #91

adriangonz opened this issue Apr 8, 2021 — with Board Genius Sync · 0 comments · Fixed by #105

Comments

Copy link

For decorated classes, it's interesting in some cases to store the class definition instead of the class instance. This means that instead of doing,

myc = MyClass()
myc.save()

One could do

MyClass.save()

This in turn would require the MLServer runtime to call MyClass() when it loads the artifact from the remote URI.

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 a pull request may close this issue.

1 participant