-
Notifications
You must be signed in to change notification settings - Fork 2
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
C++ TorchScript example #13
base: torch
Are you sure you want to change the base?
Conversation
Will have a look at it. Do you have time metrics associated with it? :) |
So we have a small improvement over onnx, this is still with k=20/h=5 right? |
The results are for k=100/h=10 |
Ohh, damn 3h.... I don't think it's anything with the code per se. Most likely it's due to the Pytorch version. I'm using the latest nightly, 2.1.0.dev20230709+cu121. |
Okay will try to upgrade pytorch, I haven't tried compiling with smaller parameters, going to do that now :) |
Hey can you update the requirments.txt file that you use? The current one points to torch 1.2.1. Would like to try with the same environment setup as yours |
Sorry about the delay. Too many meetings... I've updated the requirements.txt, but it may have some extra unnecessary dependencies, as I'm using this env for both projects. |
And out of curiosity what version of pyhon and what version of linux are you running? I can't seem to find pytorch 2.1.x_dev. And I'm not sure if I just need to update python to a newer version or install pytorch from source |
I'm on Ubuntu 22.04, using Python 3.9.17 in a conda environment. You can just install the latest nightly pytorch |
So I've added a C++ TorchScript example. Unfortunately, I wasn't able to get it running with CUDA, only the CPU.
Steps to run: