What's the advantage of using c interface #9311
Unanswered
waterdropw
asked this question in
General
Replies: 2 comments 1 reply
-
|
Beta Was this translation helpful? Give feedback.
0 replies
-
C is the lowest common denominator that allows us to write bindings for several other languages (C#, Java, Rust, etc). Besides, binary compatibility is a strong requirement for us since many of our internal customers consume the ORT shared lib directly and (obviously) don't want to bother updating their source when they update ORT. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
onnxruntime interface is defined with c(onnxruntime_c_api.h), then wrapped with c++(onnxruntime_cxx_api.h) and the whole implementation is c++.
why not c++ interface? just for binary compatibility?
Someone may concerned embeded device without C++ toolchain are still not supported.
Beta Was this translation helpful? Give feedback.
All reactions