-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
OnnxRuntime C# library - add support for Sequence and Map model output types #156
Comments
That requires the C API supports complex types, which should be a huge work. Because sequences and maps are not the only non-tensor types. Instead of doing them one by one, we should have a clear roadmap first. |
There's a model that a user converted to Onnx (see dotnet/machinelearning#1323), which produces a Sequence<Map<int,float>> as an output. It seems like a valid ONNX model, and therefore should able to run inference on it. Is there a non C API which is running this inference currently? |
The python binding is using the C++ API, but C# is using the C API, because it is not possible to access C++ functions through P/Invoke. |
Any progress to this? @jignparm Loading a model which outputs I could really use an implementation of this in the C# onnxruntime. |
This functionality is in progress (i.e. the C API supports it now), and surfacing it in C# is in progress. Should be available next week. |
@derdanielb - please look at the example below, for a model which produces seq<map<int,float>> type. |
Add support in C# OnnxRuntime Library for sequences and maps (complex types). Tensors are the only supported type currently.
The text was updated successfully, but these errors were encountered: