chore: regenerate 1.13.1 bindings

This commit is contained in:
Carson M
2022-11-26 15:54:31 -06:00
parent 2f724f1b76
commit c238054553
7 changed files with 367 additions and 25 deletions

View File

@@ -9,7 +9,7 @@ use std::{
str::FromStr
};
const ORT_VERSION: &str = "1.12.1";
const ORT_VERSION: &str = "1.13.1";
const ORT_RELEASE_BASE_URL: &str = "https://github.com/microsoft/onnxruntime/releases/download";
const ORT_ENV_STRATEGY: &str = "ORT_STRATEGY";
const ORT_ENV_SYSTEM_LIB_LOCATION: &str = "ORT_LIB_LOCATION";

View File

@@ -170,7 +170,7 @@ pub const _STRING_H: u32 = 1;
pub const _BITS_TYPES_LOCALE_T_H: u32 = 1;
pub const _BITS_TYPES___LOCALE_T_H: u32 = 1;
pub const _STRINGS_H: u32 = 1;
pub const ORT_API_VERSION: u32 = 12;
pub const ORT_API_VERSION: u32 = 13;
pub type size_t = ::std::os::raw::c_ulong;
pub type wchar_t = ::std::os::raw::c_uint;
pub const idtype_t_P_ALL: idtype_t = 0;
@@ -1937,6 +1937,11 @@ pub struct OrtCUDAProviderOptionsV2 {
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct OrtCANNProviderOptions {
_unused: [u8; 0]
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct OrtOp {
_unused: [u8; 0]
}
@@ -2334,7 +2339,7 @@ fn bindgen_test_layout_OrtMIGraphXProviderOptions() {
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct OrtOpenVINOProviderOptions {
#[doc = " \\brief Device type string\n\n Valid settings are one of: \"CPU_FP32\", \"GPU_FP32\", \"GPU_FP16\", \"MYRIAD_FP16\", \"VAD-M_FP16\" or \"VAD-F_FP32\""]
#[doc = " \\brief Device type string\n\n Valid settings are one of: \"CPU_FP32\", \"CPU_FP16\", \"GPU_FP32\", \"GPU_FP16\", \"MYRIAD_FP16\", \"VAD-M_FP16\" or \"VAD-F_FP32\""]
pub device_type: *const ::std::os::raw::c_char,
#[doc = "< 0 = disabled, nonzero = enabled"]
pub enable_vpu_fast_compile: ::std::os::raw::c_uchar,
@@ -2402,6 +2407,11 @@ fn bindgen_test_layout_OrtOpenVINOProviderOptions() {
concat!("Offset of field: ", stringify!(OrtOpenVINOProviderOptions), "::", stringify!(enable_dynamic_shapes))
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct OrtTrainingApi {
_unused: [u8; 0]
}
#[doc = " \\brief The helper interface to get the right version of OrtApi\n\n Get a pointer to this structure through ::OrtGetApiBase"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
@@ -3123,13 +3133,30 @@ pub struct OrtApi {
) -> OrtStatusPtr
>,
pub CopyKernelInfo: ::std::option::Option<unsafe extern "C" fn(info: *const OrtKernelInfo, info_copy: *mut *mut OrtKernelInfo) -> OrtStatusPtr>,
pub ReleaseKernelInfo: ::std::option::Option<unsafe extern "C" fn(input: *mut OrtKernelInfo)>
pub ReleaseKernelInfo: ::std::option::Option<unsafe extern "C" fn(input: *mut OrtKernelInfo)>,
pub GetTrainingApi: ::std::option::Option<unsafe extern "C" fn(version: u32) -> *const OrtTrainingApi>,
pub SessionOptionsAppendExecutionProvider_CANN:
::std::option::Option<unsafe extern "C" fn(options: *mut OrtSessionOptions, cann_options: *const OrtCANNProviderOptions) -> OrtStatusPtr>,
pub CreateCANNProviderOptions: ::std::option::Option<unsafe extern "C" fn(out: *mut *mut OrtCANNProviderOptions) -> OrtStatusPtr>,
pub UpdateCANNProviderOptions: ::std::option::Option<
unsafe extern "C" fn(
cann_options: *mut OrtCANNProviderOptions,
provider_options_keys: *const *const ::std::os::raw::c_char,
provider_options_values: *const *const ::std::os::raw::c_char,
num_keys: size_t
) -> OrtStatusPtr
>,
pub GetCANNProviderOptionsAsString: ::std::option::Option<
unsafe extern "C" fn(cann_options: *const OrtCANNProviderOptions, allocator: *mut OrtAllocator, ptr: *mut *mut ::std::os::raw::c_char) -> OrtStatusPtr
>,
#[doc = " \\brief Release an OrtCANNProviderOptions\n\n \\param[in] the pointer of OrtCANNProviderOptions which will been deleted\n\n \\since Version 1.13."]
pub ReleaseCANNProviderOptions: ::std::option::Option<unsafe extern "C" fn(input: *mut OrtCANNProviderOptions)>
}
#[test]
fn bindgen_test_layout_OrtApi() {
const UNINIT: ::std::mem::MaybeUninit<OrtApi> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(::std::mem::size_of::<OrtApi>(), 1752usize, concat!("Size of: ", stringify!(OrtApi)));
assert_eq!(::std::mem::size_of::<OrtApi>(), 1800usize, concat!("Size of: ", stringify!(OrtApi)));
assert_eq!(::std::mem::align_of::<OrtApi>(), 8usize, concat!("Alignment of ", stringify!(OrtApi)));
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).CreateStatus) as usize - ptr as usize },
@@ -4226,6 +4253,36 @@ fn bindgen_test_layout_OrtApi() {
1744usize,
concat!("Offset of field: ", stringify!(OrtApi), "::", stringify!(ReleaseKernelInfo))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).GetTrainingApi) as usize - ptr as usize },
1752usize,
concat!("Offset of field: ", stringify!(OrtApi), "::", stringify!(GetTrainingApi))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).SessionOptionsAppendExecutionProvider_CANN) as usize - ptr as usize },
1760usize,
concat!("Offset of field: ", stringify!(OrtApi), "::", stringify!(SessionOptionsAppendExecutionProvider_CANN))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).CreateCANNProviderOptions) as usize - ptr as usize },
1768usize,
concat!("Offset of field: ", stringify!(OrtApi), "::", stringify!(CreateCANNProviderOptions))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).UpdateCANNProviderOptions) as usize - ptr as usize },
1776usize,
concat!("Offset of field: ", stringify!(OrtApi), "::", stringify!(UpdateCANNProviderOptions))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).GetCANNProviderOptionsAsString) as usize - ptr as usize },
1784usize,
concat!("Offset of field: ", stringify!(OrtApi), "::", stringify!(GetCANNProviderOptionsAsString))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ReleaseCANNProviderOptions) as usize - ptr as usize },
1792usize,
concat!("Offset of field: ", stringify!(OrtApi), "::", stringify!(ReleaseCANNProviderOptions))
);
}
pub const OrtCustomOpInputOutputCharacteristic_INPUT_OUTPUT_REQUIRED: OrtCustomOpInputOutputCharacteristic = 0;
pub const OrtCustomOpInputOutputCharacteristic_INPUT_OUTPUT_OPTIONAL: OrtCustomOpInputOutputCharacteristic = 1;

View File

@@ -171,7 +171,7 @@ pub const _STRING_H: u32 = 1;
pub const _BITS_TYPES_LOCALE_T_H: u32 = 1;
pub const _BITS_TYPES___LOCALE_T_H: u32 = 1;
pub const _STRINGS_H: u32 = 1;
pub const ORT_API_VERSION: u32 = 12;
pub const ORT_API_VERSION: u32 = 13;
pub type wchar_t = ::std::os::raw::c_int;
pub const idtype_t_P_ALL: idtype_t = 0;
pub const idtype_t_P_PID: idtype_t = 1;
@@ -1904,6 +1904,11 @@ pub struct OrtCUDAProviderOptionsV2 {
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct OrtCANNProviderOptions {
_unused: [u8; 0]
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct OrtOp {
_unused: [u8; 0]
}
@@ -2301,7 +2306,7 @@ fn bindgen_test_layout_OrtMIGraphXProviderOptions() {
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct OrtOpenVINOProviderOptions {
#[doc = " \\brief Device type string\n\n Valid settings are one of: \"CPU_FP32\", \"GPU_FP32\", \"GPU_FP16\", \"MYRIAD_FP16\", \"VAD-M_FP16\" or \"VAD-F_FP32\""]
#[doc = " \\brief Device type string\n\n Valid settings are one of: \"CPU_FP32\", \"CPU_FP16\", \"GPU_FP32\", \"GPU_FP16\", \"MYRIAD_FP16\", \"VAD-M_FP16\" or \"VAD-F_FP32\""]
pub device_type: *const ::std::os::raw::c_char,
#[doc = "< 0 = disabled, nonzero = enabled"]
pub enable_vpu_fast_compile: ::std::os::raw::c_uchar,
@@ -2369,6 +2374,11 @@ fn bindgen_test_layout_OrtOpenVINOProviderOptions() {
concat!("Offset of field: ", stringify!(OrtOpenVINOProviderOptions), "::", stringify!(enable_dynamic_shapes))
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct OrtTrainingApi {
_unused: [u8; 0]
}
#[doc = " \\brief The helper interface to get the right version of OrtApi\n\n Get a pointer to this structure through ::OrtGetApiBase"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
@@ -3090,13 +3100,30 @@ pub struct OrtApi {
) -> OrtStatusPtr
>,
pub CopyKernelInfo: ::std::option::Option<unsafe extern "C" fn(info: *const OrtKernelInfo, info_copy: *mut *mut OrtKernelInfo) -> OrtStatusPtr>,
pub ReleaseKernelInfo: ::std::option::Option<unsafe extern "C" fn(input: *mut OrtKernelInfo)>
pub ReleaseKernelInfo: ::std::option::Option<unsafe extern "C" fn(input: *mut OrtKernelInfo)>,
pub GetTrainingApi: ::std::option::Option<unsafe extern "C" fn(version: u32) -> *const OrtTrainingApi>,
pub SessionOptionsAppendExecutionProvider_CANN:
::std::option::Option<unsafe extern "C" fn(options: *mut OrtSessionOptions, cann_options: *const OrtCANNProviderOptions) -> OrtStatusPtr>,
pub CreateCANNProviderOptions: ::std::option::Option<unsafe extern "C" fn(out: *mut *mut OrtCANNProviderOptions) -> OrtStatusPtr>,
pub UpdateCANNProviderOptions: ::std::option::Option<
unsafe extern "C" fn(
cann_options: *mut OrtCANNProviderOptions,
provider_options_keys: *const *const ::std::os::raw::c_char,
provider_options_values: *const *const ::std::os::raw::c_char,
num_keys: usize
) -> OrtStatusPtr
>,
pub GetCANNProviderOptionsAsString: ::std::option::Option<
unsafe extern "C" fn(cann_options: *const OrtCANNProviderOptions, allocator: *mut OrtAllocator, ptr: *mut *mut ::std::os::raw::c_char) -> OrtStatusPtr
>,
#[doc = " \\brief Release an OrtCANNProviderOptions\n\n \\param[in] the pointer of OrtCANNProviderOptions which will been deleted\n\n \\since Version 1.13."]
pub ReleaseCANNProviderOptions: ::std::option::Option<unsafe extern "C" fn(input: *mut OrtCANNProviderOptions)>
}
#[test]
fn bindgen_test_layout_OrtApi() {
const UNINIT: ::std::mem::MaybeUninit<OrtApi> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(::std::mem::size_of::<OrtApi>(), 1752usize, concat!("Size of: ", stringify!(OrtApi)));
assert_eq!(::std::mem::size_of::<OrtApi>(), 1800usize, concat!("Size of: ", stringify!(OrtApi)));
assert_eq!(::std::mem::align_of::<OrtApi>(), 8usize, concat!("Alignment of ", stringify!(OrtApi)));
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).CreateStatus) as usize - ptr as usize },
@@ -4193,6 +4220,36 @@ fn bindgen_test_layout_OrtApi() {
1744usize,
concat!("Offset of field: ", stringify!(OrtApi), "::", stringify!(ReleaseKernelInfo))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).GetTrainingApi) as usize - ptr as usize },
1752usize,
concat!("Offset of field: ", stringify!(OrtApi), "::", stringify!(GetTrainingApi))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).SessionOptionsAppendExecutionProvider_CANN) as usize - ptr as usize },
1760usize,
concat!("Offset of field: ", stringify!(OrtApi), "::", stringify!(SessionOptionsAppendExecutionProvider_CANN))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).CreateCANNProviderOptions) as usize - ptr as usize },
1768usize,
concat!("Offset of field: ", stringify!(OrtApi), "::", stringify!(CreateCANNProviderOptions))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).UpdateCANNProviderOptions) as usize - ptr as usize },
1776usize,
concat!("Offset of field: ", stringify!(OrtApi), "::", stringify!(UpdateCANNProviderOptions))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).GetCANNProviderOptionsAsString) as usize - ptr as usize },
1784usize,
concat!("Offset of field: ", stringify!(OrtApi), "::", stringify!(GetCANNProviderOptionsAsString))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ReleaseCANNProviderOptions) as usize - ptr as usize },
1792usize,
concat!("Offset of field: ", stringify!(OrtApi), "::", stringify!(ReleaseCANNProviderOptions))
);
}
pub const OrtCustomOpInputOutputCharacteristic_INPUT_OUTPUT_REQUIRED: OrtCustomOpInputOutputCharacteristic = 0;
pub const OrtCustomOpInputOutputCharacteristic_INPUT_OUTPUT_OPTIONAL: OrtCustomOpInputOutputCharacteristic = 1;

View File

@@ -170,7 +170,7 @@ pub const _STRING_H: u32 = 1;
pub const _BITS_TYPES_LOCALE_T_H: u32 = 1;
pub const _BITS_TYPES___LOCALE_T_H: u32 = 1;
pub const _STRINGS_H: u32 = 1;
pub const ORT_API_VERSION: u32 = 12;
pub const ORT_API_VERSION: u32 = 13;
pub type size_t = ::std::os::raw::c_ulong;
pub type wchar_t = ::std::os::raw::c_int;
pub const idtype_t_P_ALL: idtype_t = 0;
@@ -1937,6 +1937,11 @@ pub struct OrtCUDAProviderOptionsV2 {
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct OrtCANNProviderOptions {
_unused: [u8; 0]
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct OrtOp {
_unused: [u8; 0]
}
@@ -2334,7 +2339,7 @@ fn bindgen_test_layout_OrtMIGraphXProviderOptions() {
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct OrtOpenVINOProviderOptions {
#[doc = " \\brief Device type string\n\n Valid settings are one of: \"CPU_FP32\", \"GPU_FP32\", \"GPU_FP16\", \"MYRIAD_FP16\", \"VAD-M_FP16\" or \"VAD-F_FP32\""]
#[doc = " \\brief Device type string\n\n Valid settings are one of: \"CPU_FP32\", \"CPU_FP16\", \"GPU_FP32\", \"GPU_FP16\", \"MYRIAD_FP16\", \"VAD-M_FP16\" or \"VAD-F_FP32\""]
pub device_type: *const ::std::os::raw::c_char,
#[doc = "< 0 = disabled, nonzero = enabled"]
pub enable_vpu_fast_compile: ::std::os::raw::c_uchar,
@@ -2402,6 +2407,11 @@ fn bindgen_test_layout_OrtOpenVINOProviderOptions() {
concat!("Offset of field: ", stringify!(OrtOpenVINOProviderOptions), "::", stringify!(enable_dynamic_shapes))
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct OrtTrainingApi {
_unused: [u8; 0]
}
#[doc = " \\brief The helper interface to get the right version of OrtApi\n\n Get a pointer to this structure through ::OrtGetApiBase"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
@@ -3123,13 +3133,30 @@ pub struct OrtApi {
) -> OrtStatusPtr
>,
pub CopyKernelInfo: ::std::option::Option<unsafe extern "C" fn(info: *const OrtKernelInfo, info_copy: *mut *mut OrtKernelInfo) -> OrtStatusPtr>,
pub ReleaseKernelInfo: ::std::option::Option<unsafe extern "C" fn(input: *mut OrtKernelInfo)>
pub ReleaseKernelInfo: ::std::option::Option<unsafe extern "C" fn(input: *mut OrtKernelInfo)>,
pub GetTrainingApi: ::std::option::Option<unsafe extern "C" fn(version: u32) -> *const OrtTrainingApi>,
pub SessionOptionsAppendExecutionProvider_CANN:
::std::option::Option<unsafe extern "C" fn(options: *mut OrtSessionOptions, cann_options: *const OrtCANNProviderOptions) -> OrtStatusPtr>,
pub CreateCANNProviderOptions: ::std::option::Option<unsafe extern "C" fn(out: *mut *mut OrtCANNProviderOptions) -> OrtStatusPtr>,
pub UpdateCANNProviderOptions: ::std::option::Option<
unsafe extern "C" fn(
cann_options: *mut OrtCANNProviderOptions,
provider_options_keys: *const *const ::std::os::raw::c_char,
provider_options_values: *const *const ::std::os::raw::c_char,
num_keys: size_t
) -> OrtStatusPtr
>,
pub GetCANNProviderOptionsAsString: ::std::option::Option<
unsafe extern "C" fn(cann_options: *const OrtCANNProviderOptions, allocator: *mut OrtAllocator, ptr: *mut *mut ::std::os::raw::c_char) -> OrtStatusPtr
>,
#[doc = " \\brief Release an OrtCANNProviderOptions\n\n \\param[in] the pointer of OrtCANNProviderOptions which will been deleted\n\n \\since Version 1.13."]
pub ReleaseCANNProviderOptions: ::std::option::Option<unsafe extern "C" fn(input: *mut OrtCANNProviderOptions)>
}
#[test]
fn bindgen_test_layout_OrtApi() {
const UNINIT: ::std::mem::MaybeUninit<OrtApi> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(::std::mem::size_of::<OrtApi>(), 1752usize, concat!("Size of: ", stringify!(OrtApi)));
assert_eq!(::std::mem::size_of::<OrtApi>(), 1800usize, concat!("Size of: ", stringify!(OrtApi)));
assert_eq!(::std::mem::align_of::<OrtApi>(), 8usize, concat!("Alignment of ", stringify!(OrtApi)));
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).CreateStatus) as usize - ptr as usize },
@@ -4226,6 +4253,36 @@ fn bindgen_test_layout_OrtApi() {
1744usize,
concat!("Offset of field: ", stringify!(OrtApi), "::", stringify!(ReleaseKernelInfo))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).GetTrainingApi) as usize - ptr as usize },
1752usize,
concat!("Offset of field: ", stringify!(OrtApi), "::", stringify!(GetTrainingApi))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).SessionOptionsAppendExecutionProvider_CANN) as usize - ptr as usize },
1760usize,
concat!("Offset of field: ", stringify!(OrtApi), "::", stringify!(SessionOptionsAppendExecutionProvider_CANN))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).CreateCANNProviderOptions) as usize - ptr as usize },
1768usize,
concat!("Offset of field: ", stringify!(OrtApi), "::", stringify!(CreateCANNProviderOptions))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).UpdateCANNProviderOptions) as usize - ptr as usize },
1776usize,
concat!("Offset of field: ", stringify!(OrtApi), "::", stringify!(UpdateCANNProviderOptions))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).GetCANNProviderOptionsAsString) as usize - ptr as usize },
1784usize,
concat!("Offset of field: ", stringify!(OrtApi), "::", stringify!(GetCANNProviderOptionsAsString))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ReleaseCANNProviderOptions) as usize - ptr as usize },
1792usize,
concat!("Offset of field: ", stringify!(OrtApi), "::", stringify!(ReleaseCANNProviderOptions))
);
}
pub const OrtCustomOpInputOutputCharacteristic_INPUT_OUTPUT_REQUIRED: OrtCustomOpInputOutputCharacteristic = 0;
pub const OrtCustomOpInputOutputCharacteristic_INPUT_OUTPUT_OPTIONAL: OrtCustomOpInputOutputCharacteristic = 1;

View File

@@ -171,7 +171,7 @@ pub const _STRING_H: u32 = 1;
pub const _BITS_TYPES_LOCALE_T_H: u32 = 1;
pub const _BITS_TYPES___LOCALE_T_H: u32 = 1;
pub const _STRINGS_H: u32 = 1;
pub const ORT_API_VERSION: u32 = 12;
pub const ORT_API_VERSION: u32 = 13;
pub type wchar_t = ::std::os::raw::c_int;
pub const idtype_t_P_ALL: idtype_t = 0;
pub const idtype_t_P_PID: idtype_t = 1;
@@ -1904,6 +1904,11 @@ pub struct OrtCUDAProviderOptionsV2 {
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct OrtCANNProviderOptions {
_unused: [u8; 0]
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct OrtOp {
_unused: [u8; 0]
}
@@ -2301,7 +2306,7 @@ fn bindgen_test_layout_OrtMIGraphXProviderOptions() {
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct OrtOpenVINOProviderOptions {
#[doc = " \\brief Device type string\n\n Valid settings are one of: \"CPU_FP32\", \"GPU_FP32\", \"GPU_FP16\", \"MYRIAD_FP16\", \"VAD-M_FP16\" or \"VAD-F_FP32\""]
#[doc = " \\brief Device type string\n\n Valid settings are one of: \"CPU_FP32\", \"CPU_FP16\", \"GPU_FP32\", \"GPU_FP16\", \"MYRIAD_FP16\", \"VAD-M_FP16\" or \"VAD-F_FP32\""]
pub device_type: *const ::std::os::raw::c_char,
#[doc = "< 0 = disabled, nonzero = enabled"]
pub enable_vpu_fast_compile: ::std::os::raw::c_uchar,
@@ -2369,6 +2374,11 @@ fn bindgen_test_layout_OrtOpenVINOProviderOptions() {
concat!("Offset of field: ", stringify!(OrtOpenVINOProviderOptions), "::", stringify!(enable_dynamic_shapes))
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct OrtTrainingApi {
_unused: [u8; 0]
}
#[doc = " \\brief The helper interface to get the right version of OrtApi\n\n Get a pointer to this structure through ::OrtGetApiBase"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
@@ -3090,13 +3100,30 @@ pub struct OrtApi {
) -> OrtStatusPtr
>,
pub CopyKernelInfo: ::std::option::Option<unsafe extern "C" fn(info: *const OrtKernelInfo, info_copy: *mut *mut OrtKernelInfo) -> OrtStatusPtr>,
pub ReleaseKernelInfo: ::std::option::Option<unsafe extern "C" fn(input: *mut OrtKernelInfo)>
pub ReleaseKernelInfo: ::std::option::Option<unsafe extern "C" fn(input: *mut OrtKernelInfo)>,
pub GetTrainingApi: ::std::option::Option<unsafe extern "C" fn(version: u32) -> *const OrtTrainingApi>,
pub SessionOptionsAppendExecutionProvider_CANN:
::std::option::Option<unsafe extern "C" fn(options: *mut OrtSessionOptions, cann_options: *const OrtCANNProviderOptions) -> OrtStatusPtr>,
pub CreateCANNProviderOptions: ::std::option::Option<unsafe extern "C" fn(out: *mut *mut OrtCANNProviderOptions) -> OrtStatusPtr>,
pub UpdateCANNProviderOptions: ::std::option::Option<
unsafe extern "C" fn(
cann_options: *mut OrtCANNProviderOptions,
provider_options_keys: *const *const ::std::os::raw::c_char,
provider_options_values: *const *const ::std::os::raw::c_char,
num_keys: usize
) -> OrtStatusPtr
>,
pub GetCANNProviderOptionsAsString: ::std::option::Option<
unsafe extern "C" fn(cann_options: *const OrtCANNProviderOptions, allocator: *mut OrtAllocator, ptr: *mut *mut ::std::os::raw::c_char) -> OrtStatusPtr
>,
#[doc = " \\brief Release an OrtCANNProviderOptions\n\n \\param[in] the pointer of OrtCANNProviderOptions which will been deleted\n\n \\since Version 1.13."]
pub ReleaseCANNProviderOptions: ::std::option::Option<unsafe extern "C" fn(input: *mut OrtCANNProviderOptions)>
}
#[test]
fn bindgen_test_layout_OrtApi() {
const UNINIT: ::std::mem::MaybeUninit<OrtApi> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(::std::mem::size_of::<OrtApi>(), 1752usize, concat!("Size of: ", stringify!(OrtApi)));
assert_eq!(::std::mem::size_of::<OrtApi>(), 1800usize, concat!("Size of: ", stringify!(OrtApi)));
assert_eq!(::std::mem::align_of::<OrtApi>(), 8usize, concat!("Alignment of ", stringify!(OrtApi)));
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).CreateStatus) as usize - ptr as usize },
@@ -4193,6 +4220,36 @@ fn bindgen_test_layout_OrtApi() {
1744usize,
concat!("Offset of field: ", stringify!(OrtApi), "::", stringify!(ReleaseKernelInfo))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).GetTrainingApi) as usize - ptr as usize },
1752usize,
concat!("Offset of field: ", stringify!(OrtApi), "::", stringify!(GetTrainingApi))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).SessionOptionsAppendExecutionProvider_CANN) as usize - ptr as usize },
1760usize,
concat!("Offset of field: ", stringify!(OrtApi), "::", stringify!(SessionOptionsAppendExecutionProvider_CANN))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).CreateCANNProviderOptions) as usize - ptr as usize },
1768usize,
concat!("Offset of field: ", stringify!(OrtApi), "::", stringify!(CreateCANNProviderOptions))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).UpdateCANNProviderOptions) as usize - ptr as usize },
1776usize,
concat!("Offset of field: ", stringify!(OrtApi), "::", stringify!(UpdateCANNProviderOptions))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).GetCANNProviderOptionsAsString) as usize - ptr as usize },
1784usize,
concat!("Offset of field: ", stringify!(OrtApi), "::", stringify!(GetCANNProviderOptionsAsString))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ReleaseCANNProviderOptions) as usize - ptr as usize },
1792usize,
concat!("Offset of field: ", stringify!(OrtApi), "::", stringify!(ReleaseCANNProviderOptions))
);
}
pub const OrtCustomOpInputOutputCharacteristic_INPUT_OUTPUT_REQUIRED: OrtCustomOpInputOutputCharacteristic = 0;
pub const OrtCustomOpInputOutputCharacteristic_INPUT_OUTPUT_OPTIONAL: OrtCustomOpInputOutputCharacteristic = 1;

View File

@@ -168,7 +168,7 @@ pub const ETIMEDOUT: u32 = 138;
pub const ETXTBSY: u32 = 139;
pub const EWOULDBLOCK: u32 = 140;
pub const _NLSCMPERROR: u32 = 2147483647;
pub const ORT_API_VERSION: u32 = 12;
pub const ORT_API_VERSION: u32 = 13;
pub const __SAL_H_FULL_VER: u32 = 140050727;
pub const __SPECSTRINGS_STRICT_LEVEL: u32 = 1;
pub const __drv_typeConst: u32 = 0;
@@ -2058,6 +2058,11 @@ pub struct OrtCUDAProviderOptionsV2 {
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct OrtCANNProviderOptions {
_unused: [u8; 0]
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct OrtOp {
_unused: [u8; 0]
}
@@ -2455,7 +2460,7 @@ fn bindgen_test_layout_OrtMIGraphXProviderOptions() {
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct OrtOpenVINOProviderOptions {
#[doc = " \\brief Device type string\n\n Valid settings are one of: \"CPU_FP32\", \"GPU_FP32\", \"GPU_FP16\", \"MYRIAD_FP16\", \"VAD-M_FP16\" or \"VAD-F_FP32\""]
#[doc = " \\brief Device type string\n\n Valid settings are one of: \"CPU_FP32\", \"CPU_FP16\", \"GPU_FP32\", \"GPU_FP16\", \"MYRIAD_FP16\", \"VAD-M_FP16\" or \"VAD-F_FP32\""]
pub device_type: *const ::std::os::raw::c_char,
#[doc = "< 0 = disabled, nonzero = enabled"]
pub enable_vpu_fast_compile: ::std::os::raw::c_uchar,
@@ -2523,6 +2528,11 @@ fn bindgen_test_layout_OrtOpenVINOProviderOptions() {
concat!("Offset of field: ", stringify!(OrtOpenVINOProviderOptions), "::", stringify!(enable_dynamic_shapes))
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct OrtTrainingApi {
_unused: [u8; 0]
}
#[doc = " \\brief The helper interface to get the right version of OrtApi\n\n Get a pointer to this structure through ::OrtGetApiBase"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
@@ -3238,13 +3248,30 @@ pub struct OrtApi {
) -> OrtStatusPtr
>,
pub CopyKernelInfo: ::std::option::Option<unsafe extern "C" fn(info: *const OrtKernelInfo, info_copy: *mut *mut OrtKernelInfo) -> OrtStatusPtr>,
pub ReleaseKernelInfo: ::std::option::Option<unsafe extern "C" fn(input: *mut OrtKernelInfo)>
pub ReleaseKernelInfo: ::std::option::Option<unsafe extern "C" fn(input: *mut OrtKernelInfo)>,
pub GetTrainingApi: ::std::option::Option<unsafe extern "C" fn(version: u32) -> *const OrtTrainingApi>,
pub SessionOptionsAppendExecutionProvider_CANN:
::std::option::Option<unsafe extern "C" fn(options: *mut OrtSessionOptions, cann_options: *const OrtCANNProviderOptions) -> OrtStatusPtr>,
pub CreateCANNProviderOptions: ::std::option::Option<unsafe extern "C" fn(out: *mut *mut OrtCANNProviderOptions) -> OrtStatusPtr>,
pub UpdateCANNProviderOptions: ::std::option::Option<
unsafe extern "C" fn(
cann_options: *mut OrtCANNProviderOptions,
provider_options_keys: *const *const ::std::os::raw::c_char,
provider_options_values: *const *const ::std::os::raw::c_char,
num_keys: size_t
) -> OrtStatusPtr
>,
pub GetCANNProviderOptionsAsString: ::std::option::Option<
unsafe extern "C" fn(cann_options: *const OrtCANNProviderOptions, allocator: *mut OrtAllocator, ptr: *mut *mut ::std::os::raw::c_char) -> OrtStatusPtr
>,
#[doc = " \\brief Release an OrtCANNProviderOptions\n\n \\param[in] the pointer of OrtCANNProviderOptions which will been deleted\n\n \\since Version 1.13."]
pub ReleaseCANNProviderOptions: ::std::option::Option<unsafe extern "C" fn(input: *mut OrtCANNProviderOptions)>
}
#[test]
fn bindgen_test_layout_OrtApi() {
const UNINIT: ::std::mem::MaybeUninit<OrtApi> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(::std::mem::size_of::<OrtApi>(), 1752usize, concat!("Size of: ", stringify!(OrtApi)));
assert_eq!(::std::mem::size_of::<OrtApi>(), 1800usize, concat!("Size of: ", stringify!(OrtApi)));
assert_eq!(::std::mem::align_of::<OrtApi>(), 8usize, concat!("Alignment of ", stringify!(OrtApi)));
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).CreateStatus) as usize - ptr as usize },
@@ -4341,6 +4368,36 @@ fn bindgen_test_layout_OrtApi() {
1744usize,
concat!("Offset of field: ", stringify!(OrtApi), "::", stringify!(ReleaseKernelInfo))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).GetTrainingApi) as usize - ptr as usize },
1752usize,
concat!("Offset of field: ", stringify!(OrtApi), "::", stringify!(GetTrainingApi))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).SessionOptionsAppendExecutionProvider_CANN) as usize - ptr as usize },
1760usize,
concat!("Offset of field: ", stringify!(OrtApi), "::", stringify!(SessionOptionsAppendExecutionProvider_CANN))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).CreateCANNProviderOptions) as usize - ptr as usize },
1768usize,
concat!("Offset of field: ", stringify!(OrtApi), "::", stringify!(CreateCANNProviderOptions))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).UpdateCANNProviderOptions) as usize - ptr as usize },
1776usize,
concat!("Offset of field: ", stringify!(OrtApi), "::", stringify!(UpdateCANNProviderOptions))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).GetCANNProviderOptionsAsString) as usize - ptr as usize },
1784usize,
concat!("Offset of field: ", stringify!(OrtApi), "::", stringify!(GetCANNProviderOptionsAsString))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ReleaseCANNProviderOptions) as usize - ptr as usize },
1792usize,
concat!("Offset of field: ", stringify!(OrtApi), "::", stringify!(ReleaseCANNProviderOptions))
);
}
pub const OrtCustomOpInputOutputCharacteristic_INPUT_OUTPUT_REQUIRED: OrtCustomOpInputOutputCharacteristic = 0;
pub const OrtCustomOpInputOutputCharacteristic_INPUT_OUTPUT_OPTIONAL: OrtCustomOpInputOutputCharacteristic = 1;

View File

@@ -167,7 +167,7 @@ pub const ETIMEDOUT: u32 = 138;
pub const ETXTBSY: u32 = 139;
pub const EWOULDBLOCK: u32 = 140;
pub const _NLSCMPERROR: u32 = 2147483647;
pub const ORT_API_VERSION: u32 = 12;
pub const ORT_API_VERSION: u32 = 13;
pub const __SAL_H_FULL_VER: u32 = 140050727;
pub const __SPECSTRINGS_STRICT_LEVEL: u32 = 1;
pub const __drv_typeConst: u32 = 0;
@@ -2052,6 +2052,11 @@ pub struct OrtCUDAProviderOptionsV2 {
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct OrtCANNProviderOptions {
_unused: [u8; 0]
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct OrtOp {
_unused: [u8; 0]
}
@@ -2449,7 +2454,7 @@ fn bindgen_test_layout_OrtMIGraphXProviderOptions() {
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct OrtOpenVINOProviderOptions {
#[doc = " \\brief Device type string\n\n Valid settings are one of: \"CPU_FP32\", \"GPU_FP32\", \"GPU_FP16\", \"MYRIAD_FP16\", \"VAD-M_FP16\" or \"VAD-F_FP32\""]
#[doc = " \\brief Device type string\n\n Valid settings are one of: \"CPU_FP32\", \"CPU_FP16\", \"GPU_FP32\", \"GPU_FP16\", \"MYRIAD_FP16\", \"VAD-M_FP16\" or \"VAD-F_FP32\""]
pub device_type: *const ::std::os::raw::c_char,
#[doc = "< 0 = disabled, nonzero = enabled"]
pub enable_vpu_fast_compile: ::std::os::raw::c_uchar,
@@ -2517,6 +2522,11 @@ fn bindgen_test_layout_OrtOpenVINOProviderOptions() {
concat!("Offset of field: ", stringify!(OrtOpenVINOProviderOptions), "::", stringify!(enable_dynamic_shapes))
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct OrtTrainingApi {
_unused: [u8; 0]
}
#[doc = " \\brief The helper interface to get the right version of OrtApi\n\n Get a pointer to this structure through ::OrtGetApiBase"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
@@ -3232,13 +3242,30 @@ pub struct OrtApi {
) -> OrtStatusPtr
>,
pub CopyKernelInfo: ::std::option::Option<unsafe extern "C" fn(info: *const OrtKernelInfo, info_copy: *mut *mut OrtKernelInfo) -> OrtStatusPtr>,
pub ReleaseKernelInfo: ::std::option::Option<unsafe extern "C" fn(input: *mut OrtKernelInfo)>
pub ReleaseKernelInfo: ::std::option::Option<unsafe extern "C" fn(input: *mut OrtKernelInfo)>,
pub GetTrainingApi: ::std::option::Option<unsafe extern "C" fn(version: u32) -> *const OrtTrainingApi>,
pub SessionOptionsAppendExecutionProvider_CANN:
::std::option::Option<unsafe extern "C" fn(options: *mut OrtSessionOptions, cann_options: *const OrtCANNProviderOptions) -> OrtStatusPtr>,
pub CreateCANNProviderOptions: ::std::option::Option<unsafe extern "C" fn(out: *mut *mut OrtCANNProviderOptions) -> OrtStatusPtr>,
pub UpdateCANNProviderOptions: ::std::option::Option<
unsafe extern "C" fn(
cann_options: *mut OrtCANNProviderOptions,
provider_options_keys: *const *const ::std::os::raw::c_char,
provider_options_values: *const *const ::std::os::raw::c_char,
num_keys: usize
) -> OrtStatusPtr
>,
pub GetCANNProviderOptionsAsString: ::std::option::Option<
unsafe extern "C" fn(cann_options: *const OrtCANNProviderOptions, allocator: *mut OrtAllocator, ptr: *mut *mut ::std::os::raw::c_char) -> OrtStatusPtr
>,
#[doc = " \\brief Release an OrtCANNProviderOptions\n\n \\param[in] the pointer of OrtCANNProviderOptions which will been deleted\n\n \\since Version 1.13."]
pub ReleaseCANNProviderOptions: ::std::option::Option<unsafe extern "C" fn(input: *mut OrtCANNProviderOptions)>
}
#[test]
fn bindgen_test_layout_OrtApi() {
const UNINIT: ::std::mem::MaybeUninit<OrtApi> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(::std::mem::size_of::<OrtApi>(), 1752usize, concat!("Size of: ", stringify!(OrtApi)));
assert_eq!(::std::mem::size_of::<OrtApi>(), 1800usize, concat!("Size of: ", stringify!(OrtApi)));
assert_eq!(::std::mem::align_of::<OrtApi>(), 8usize, concat!("Alignment of ", stringify!(OrtApi)));
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).CreateStatus) as usize - ptr as usize },
@@ -4335,6 +4362,36 @@ fn bindgen_test_layout_OrtApi() {
1744usize,
concat!("Offset of field: ", stringify!(OrtApi), "::", stringify!(ReleaseKernelInfo))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).GetTrainingApi) as usize - ptr as usize },
1752usize,
concat!("Offset of field: ", stringify!(OrtApi), "::", stringify!(GetTrainingApi))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).SessionOptionsAppendExecutionProvider_CANN) as usize - ptr as usize },
1760usize,
concat!("Offset of field: ", stringify!(OrtApi), "::", stringify!(SessionOptionsAppendExecutionProvider_CANN))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).CreateCANNProviderOptions) as usize - ptr as usize },
1768usize,
concat!("Offset of field: ", stringify!(OrtApi), "::", stringify!(CreateCANNProviderOptions))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).UpdateCANNProviderOptions) as usize - ptr as usize },
1776usize,
concat!("Offset of field: ", stringify!(OrtApi), "::", stringify!(UpdateCANNProviderOptions))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).GetCANNProviderOptionsAsString) as usize - ptr as usize },
1784usize,
concat!("Offset of field: ", stringify!(OrtApi), "::", stringify!(GetCANNProviderOptionsAsString))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ReleaseCANNProviderOptions) as usize - ptr as usize },
1792usize,
concat!("Offset of field: ", stringify!(OrtApi), "::", stringify!(ReleaseCANNProviderOptions))
);
}
pub const OrtCustomOpInputOutputCharacteristic_INPUT_OUTPUT_REQUIRED: OrtCustomOpInputOutputCharacteristic = 0;
pub const OrtCustomOpInputOutputCharacteristic_INPUT_OUTPUT_OPTIONAL: OrtCustomOpInputOutputCharacteristic = 1;