You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Following the onnxruntime-extensions build script, I am able to use some community custom operations as sentencepiece_tokenizer.
In order to register those operations, I must call first the EnableOrtCustomOps functions, present at the main c and c++ APIs.
This call generates an OrtSessionOptions object which is used to invoke a new session containing the custom operations.
The current rust crate is missing those 2 calls: EnableOrtCustomOps and a SessionBuilder which can be fed with a OrtSessionOptions object.
For visibility purposes, the code below shows the implementation of the first call:
Following the onnxruntime-extensions build script, I am able to use some community custom operations as sentencepiece_tokenizer.
In order to register those operations, I must call first the EnableOrtCustomOps functions, present at the main c and c++ APIs.
This call generates an OrtSessionOptions object which is used to invoke a new session containing the custom operations.
The current rust crate is missing those 2 calls: EnableOrtCustomOps and a SessionBuilder which can be fed with a OrtSessionOptions object.
For visibility purposes, the code below shows the implementation of the first call:
And the next one the session building process:
The text was updated successfully, but these errors were encountered: