Closed wujian752 closed 2 years ago
So, I had the same issue to run this in a server, and to make it work I had to make the environment owned by the session. You can see the modification here: https://github.com/haixuanTao/onnxruntime-rs/commit/4ebef94d5ac6df85f3fa271fd0a0a13b9be57dd1
You can also fork the branch.
Thanks a lot. @haixuanTao .
I'm curious about how to separate the creation and running of a session so that I can create a session in a function and then run it multiple times in another function to avoid repeating session creation like this:
I have tried to save the environment in
Net
too, but it also causes aself-referential
problem.Is there any way to solve such a problem?