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

How to convert pytorch model to Torch script? #11

Open
DaveNM2021 opened this issue Jun 22, 2024 · 2 comments
Open

How to convert pytorch model to Torch script? #11

DaveNM2021 opened this issue Jun 22, 2024 · 2 comments

Comments

@DaveNM2021
Copy link

DaveNM2021 commented Jun 22, 2024

Hello, How are you? How to convert pytorch model to Torch script? Thanks. Dave.

@DaveNM2021 DaveNM2021 changed the title Hello, How are you? How to convert pytorch model to Torch script? Thanks. Dave. How to convert pytorch model to Torch script? Jun 22, 2024
@ksasso1028
Copy link
Owner

hello Dave!

Here is the tutorial on how to move to TorchScript https://pytorch.org/tutorials/beginner/Intro_to_TorchScript_tutorial.html

In short, you must choose between tracing or scripting which the tutorial goes rather in depth on. In this case, I had to trace the models.

@DaveNM2021
Copy link
Author

Thank you very much.
I have tried tracing. but I can not use it in libtorch.
Could you write the script to trace pytorch model?
Best Regards.

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

No branches or pull requests

2 participants