mirror of
https://github.com/yalue/onnxruntime_go.git
synced 2025-12-24 13:38:00 +08:00
Convert paths to UTF16 on Windows, enable path-based APIs - This change adds a function to convert UTF8 to UTF16 strings on Windows, enabling direct usage of the onnxruntime CreateSession functions in lieu of always buffering files and using CreateSessionFromArray. - Adding functionality for converting paths to UTF16 also enables the training API on Windows. - This is an in-progress commit that still may require some touchups, as well as proper test cases for the now-underutilized *WithONNXData functions. - Added a simple .onnx file to test_data with a name containing non-ascii characters. - Used the new file to test that the non-ASCII paths work correctly on Windows and Linux, in both the current and "legacy" session API. - Removed the old "example_network.onnx" and associated tests. This was an overengineered idea from when I first started the library.