-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Ryanunderhill/c api #85
Conversation
Remove Ptr suffix and use '*' syntax directly.
…o ryanunderhill/c_api
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let us check in the structure of the code so we can iterate.
@@ -13,7 +13,7 @@ | |||
#include "core/common/exceptions.h" | |||
#include "core/common/status.h" | |||
#include "core/framework/fence.h" | |||
#include "core/framework/allocator_info.h" | |||
#include "core/session/onnxruntime_c_api.h" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
onnxruntime_framework shouldn't depend on any file in session folder.
@@ -40,20 +40,19 @@ DECLARE_DEFAULT_DELETER_FOR_ONNX_OBJECT(Allocator); | |||
DECLARE_DEFAULT_DELETER_FOR_ONNX_OBJECT(TensorTypeAndShapeInfo); | |||
DECLARE_DEFAULT_DELETER_FOR_ONNX_OBJECT(RunOptions); | |||
DECLARE_DEFAULT_DELETER_FOR_ONNX_OBJECT(SessionOptions); | |||
DECLARE_DEFAULT_DELETER_FOR_ONNX_OBJECT(ProviderFactoryPtr); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do you delete this line?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It originally caused an error because there is no ProviderFactory* but there is ProviderFactoryInterface*, I put it back.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you put it back?
…o ryanunderhill/c_api
What's the benefit of merging them into a single header file? |
This change merges all of the C API header files into a single header file.
It also removes the Ptr suffix on C API types and uses '*' notation directly.
The changes in most files are just due to naming changes and header file include changes.
There will be more changes soon.