Commit Graph

6 Commits

Author SHA1 Message Date
Nathan
ccbc079746 Expose telemetry control APIs
- This change adds the DisableTelemetry() and EnableTelemetry()
   top-level functions, which wrap the DisableTelemetryEvents() and
   EnableTelemetryEvents() C API functions for the package's internal
   onnxruntime environment.

 - This change rolls back some of the prior commit.  As a fan of the
   onnxruntime library, I decided to take a more charitable approach to
   their telemetry and not disable it by default in these bindings.
2023-06-21 20:52:39 -04:00
yalue
b2007c3814 Update onnxruntime to 1.15.1, disable telemetry
- This change updates onnxruntime_c_api.h to version 1.15.1, as well as
   test_data/onnxruntime.dll and test_data/onnxruntime_arm64.so.

 - This change also manually adds a call to DisableTelemetryEvents
   whenever initializing onnxruntime. If any user wants to re-enable
   telemetry let me know and I can add a function to do so. I figured
   most people won't care if it's just off by default in these bindings.
2023-06-20 20:38:06 -04:00
yalue
bb5039f6ad Enable multiple inputs and outputs
- Modified the Session API so that the user must provide all input and
   output tensors when creating the session (Run() no longer takes any
   arguments).  This should avoid allocations and fix the incorrect way
   I was using input and output names before.

 - Updated the test to use the new API.

 - Removed the onnx_example_application; it was only doing the same
   thing as the unit test anyway.
2023-02-04 13:51:45 -05:00
yalue
137ec8f64f Can now load and run a network
- The library is now capable of loading the test session and running
   it successfully.

 - Updated the example application, which is really the same as the test
   and should probably be deleted.

 - TODO: The input names actually *do* need to match the names when the
   network was created. The hardcoded names in onnxruntime_wrapper.c
   will *not* do!
2023-02-04 10:31:57 -05:00
yalue
ff910beb76 Add tensor support
- There is now a wrapper to create generic Tensor objects in Go, that
   should be appropriately backed by the onnxruntime.

 - Did some minor tests.

 - Still to do: update the example, and put together a nice API that
   uses the tensors.
2023-02-01 19:47:53 -05:00
yalue
75e3434f7e Initial commit
- Sets up the onnxruntime environment, but doesn't load or run networks
   yet.

 - The things builds and run on Windows.

 - Still working on getting the Linux (arm64 for now) test to work.
2023-01-28 13:49:33 -05:00