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

Exception while saving model #14

Closed
agurianov opened this issue Oct 31, 2022 · 5 comments
Closed

Exception while saving model #14

agurianov opened this issue Oct 31, 2022 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@agurianov
Copy link

I use the example and got this error:
TypeError: cannot pickle 'onnxruntime.capi.onnxruntime_pybind11_state.InferenceSession' object

@andremacola
Copy link

More info about this: microsoft/onnxruntime#10097 and microsoft/onnxruntime#800 (comment)

@andremacola
Copy link

I have a dataset with more than 100.000 sentences and labels. Using without pickle is impossible.

However creating the pickle file is time consuming but then it is very quick to raise the api (fastapi) and the response is very fast after being stored in memory.

Using 0.4.2 for now

@davidberenstein1957
Copy link
Owner

Thanks! @andremacola

@davidberenstein1957 davidberenstein1957 self-assigned this Nov 6, 2022
@davidberenstein1957 davidberenstein1957 added the bug Something isn't working label Nov 6, 2022
@davidberenstein1957
Copy link
Owner

This will be added to a new release during the coming weekend.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants