Remove the OrtApiBase base_ member from OrtApi (#2242)

* Remove the OrtApiBase base_ member from OrtApi

* Forgot about C#
This commit is contained in:
Ryan Hill 2019-10-24 11:36:23 -07:00 committed by Changming Sun
parent d0b8f96692
commit 2c864e0ffc
3 changed files with 0 additions and 5 deletions

View file

@ -16,7 +16,6 @@ namespace Microsoft.ML.OnnxRuntime
[StructLayout(LayoutKind.Sequential)]
public struct OrtApi
{
public OrtApiBase base_;
public IntPtr CreateStatus;
public IntPtr GetErrorCode;
public IntPtr GetErrorMessage;

View file

@ -220,8 +220,6 @@ typedef struct OrtApiBase OrtApiBase;
ORT_EXPORT const OrtApiBase* ORT_API_CALL OrtGetApiBase() NO_EXCEPTION;
struct OrtApi {
OrtApiBase base_;
/**
* \param msg A null-terminated string. Its content will be copied into the newly created OrtStatus
*/

View file

@ -1279,8 +1279,6 @@ static constexpr OrtApiBase ort_api_base = {
};
static constexpr OrtApi ort_api_1 = {
ort_api_base,
&OrtApis::CreateStatus,
&OrtApis::GetErrorCode,
&OrtApis::GetErrorMessage,