-
Notifications
You must be signed in to change notification settings - Fork 279
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
When convert a ml using backend of pytorch, how can I save the converted model into pytorch format? #641
Comments
You can find the tests here showing how to do it with the different backends |
Thank you for replying! I walked over the test cases. I did not find the test code to save converted model as pytorch format. Maybe I was not clear enough. I want to the saved model can be loaded by some pytorch code. Thanks. |
When you save a model we create a zip file containing a bunch of metadata and the model in the pytorch format (if you chose that as backend). If you want just to save and load the pytorch model you can just do |
Thanks for the tip! |
By the way, is there a way that I can select only probability when converting random forest to pytorch in hummingbird? |
No. You can run ‘predict_prob’ to get the probabilities, but conversion is
the same.
…On Tue, Oct 18, 2022 at 8:16 PM GoHard2023 ***@***.***> wrote:
By the way, is there a way that I can select only probability when
converting random forest to pytorch in hummingbird?
—
Reply to this email directly, view it on GitHub
<#641 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AALWR55TWGR5JCLQJNNX63DWD5RXHANCNFSM6AAAAAARHTWVKU>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
As titled. Is there a way I can save a converted model as pytorch format?
The text was updated successfully, but these errors were encountered: