Onnxruntime c接口说明及 动态调用示例
Onnxruntime c接口说明及动态调用示例背景:需要onnx模型推理的功能,直接引用onnxruntime代码会引起编译问题。所以考虑动态加载onnxruntime的动态库完成。C++的接口依然需要源码依赖,所以考虑使用onnxruntime的c接口。1.How to access Onnxruntime C API:要访问c api,需要拿到 c api的函数指针,而onnxruntime 的所有capi定义在 一个结构体中:https://github.com/microsof
原创
2020-08-02 18:19:08 ·
4514 阅读 ·
0 评论