Skip to content
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

Merged
merged 25 commits into from
Dec 5, 2018
Merged

Ryanunderhill/c api #85

merged 25 commits into from
Dec 5, 2018

Conversation

RyanUnderhill
Copy link
Member

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.

@RyanUnderhill RyanUnderhill requested a review from a team as a code owner December 4, 2018 02:27
@RyanUnderhill RyanUnderhill requested a review from yuanbyu December 4, 2018 02:27
yuanbyu
yuanbyu previously approved these changes Dec 4, 2018
Copy link
Contributor

@yuanbyu yuanbyu left a 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"
Copy link
Member

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);
Copy link
Member

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?

Copy link
Member Author

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.

Copy link
Member

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?

@snnn
Copy link
Member

snnn commented Dec 5, 2018

What's the benefit of merging them into a single header file?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants