1#![allow(non_snake_case, unused)]
2
3use alloc::{boxed::Box, ffi::CString, string::String};
4use core::{ffi::c_char, ptr};
5
6use crate::*;
7
8#[derive(Debug, Clone)]
9pub struct Error {
10 pub code: OrtErrorCode,
11 message: CString
12}
13
14impl Error {
15 pub fn new(code: OrtErrorCode, message: impl Into<String>) -> Self {
16 Self {
17 code,
18 message: CString::new(message.into()).unwrap()
19 }
20 }
21
22 pub fn into_sys(self) -> OrtStatusPtr {
23 OrtStatusPtr((Box::leak(Box::new(self)) as *mut Error).cast())
24 }
25
26 pub fn new_sys(code: OrtErrorCode, message: impl Into<String>) -> OrtStatusPtr {
27 Self::new(code, message).into_sys()
28 }
29
30 #[inline]
31 pub fn message(&self) -> &str {
32 self.message.as_c_str().to_str().unwrap()
33 }
34
35 #[inline]
36 pub fn message_ptr(&self) -> *const c_char {
37 self.message.as_ptr()
38 }
39
40 pub unsafe fn cast_from_sys<'e>(status: *const OrtStatus) -> &'e Error {
41 unsafe { &*status.cast::<Error>() }
42 }
43
44 pub unsafe fn consume_sys(status: *mut OrtStatus) -> Box<Error> {
45 unsafe { Box::from_raw(status.cast::<Error>()) }
46 }
47}
48
49unsafe extern "system" fn CreateStatus(code: OrtErrorCode, msg: *const ::core::ffi::c_char) -> OrtStatusPtr {
50 let msg = unsafe { CString::from_raw(msg.cast_mut()) };
51 Error::new_sys(code, msg.to_string_lossy())
52}
53
54unsafe extern "system" fn GetErrorCode(status: *const OrtStatus) -> OrtErrorCode {
55 unsafe { Error::cast_from_sys(status) }.code
56}
57
58unsafe extern "system" fn GetErrorMessage(status: *const OrtStatus) -> *const ::core::ffi::c_char {
59 unsafe { Error::cast_from_sys(status) }.message_ptr()
60}
61
62unsafe extern "system" fn CreateEnv(log_severity_level: OrtLoggingLevel, logid: *const ::core::ffi::c_char, out: *mut *mut OrtEnv) -> OrtStatusPtr {
63 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
64}
65
66unsafe extern "system" fn CreateEnvWithCustomLogger(
67 logging_function: OrtLoggingFunction,
68 logger_param: *mut ::core::ffi::c_void,
69 log_severity_level: OrtLoggingLevel,
70 logid: *const ::core::ffi::c_char,
71 out: *mut *mut OrtEnv
72) -> OrtStatusPtr {
73 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
74}
75
76unsafe extern "system" fn EnableTelemetryEvents(env: *const OrtEnv) -> OrtStatusPtr {
77 OrtStatusPtr::default()
78}
79
80unsafe extern "system" fn DisableTelemetryEvents(env: *const OrtEnv) -> OrtStatusPtr {
81 OrtStatusPtr::default()
82}
83
84#[cfg(not(target_arch = "wasm32"))]
85unsafe extern "system" fn CreateSession(
86 env: *const OrtEnv,
87 model_path: *const os_char,
88 options: *const OrtSessionOptions,
89 out: *mut *mut OrtSession
90) -> OrtStatusPtr {
91 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
92}
93
94#[cfg(target_arch = "wasm32")]
95unsafe fn CreateSession(
96 env: *const OrtEnv,
97 model_path: &str,
98 options: *const OrtSessionOptions,
99 out: *mut *mut OrtSession
100) -> core::pin::Pin<alloc::boxed::Box<dyn core::future::Future<Output = OrtStatusPtr>>> {
101 Box::pin(async { Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented") })
102}
103
104#[cfg(not(target_arch = "wasm32"))]
105unsafe extern "system" fn CreateSessionFromArray(
106 env: *const OrtEnv,
107 model_data: *const ::core::ffi::c_void,
108 model_data_length: usize,
109 options: *const OrtSessionOptions,
110 out: *mut *mut OrtSession
111) -> OrtStatusPtr {
112 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
113}
114
115#[cfg(target_arch = "wasm32")]
116unsafe fn CreateSessionFromArray(
117 env: *const OrtEnv,
118 model_data: &[u8],
119 options: *const OrtSessionOptions,
120 out: *mut *mut OrtSession
121) -> core::pin::Pin<alloc::boxed::Box<dyn core::future::Future<Output = OrtStatusPtr>>> {
122 Box::pin(async { Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented") })
123}
124
125unsafe extern "system" fn Run(
126 session: *mut OrtSession,
127 run_options: *const OrtRunOptions,
128 input_names: *const *const ::core::ffi::c_char,
129 inputs: *const *const OrtValue,
130 input_len: usize,
131 output_names: *const *const ::core::ffi::c_char,
132 output_names_len: usize,
133 output_ptrs: *mut *mut OrtValue
134) -> OrtStatusPtr {
135 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
136}
137
138unsafe extern "system" fn CreateSessionOptions(options: *mut *mut OrtSessionOptions) -> OrtStatusPtr {
139 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
140}
141
142unsafe extern "system" fn SetOptimizedModelFilePath(options: *mut OrtSessionOptions, optimized_model_filepath: *const os_char) -> OrtStatusPtr {
143 OrtStatusPtr::default()
144}
145
146unsafe extern "system" fn CloneSessionOptions(in_options: *const OrtSessionOptions, out_options: *mut *mut OrtSessionOptions) -> OrtStatusPtr {
147 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
148}
149
150unsafe extern "system" fn SetSessionExecutionMode(options: *mut OrtSessionOptions, execution_mode: ExecutionMode) -> OrtStatusPtr {
151 OrtStatusPtr::default()
152}
153
154unsafe extern "system" fn EnableProfiling(options: *mut OrtSessionOptions, profile_file_prefix: *const os_char) -> OrtStatusPtr {
155 OrtStatusPtr::default()
156}
157
158unsafe extern "system" fn DisableProfiling(options: *mut OrtSessionOptions) -> OrtStatusPtr {
159 OrtStatusPtr::default()
160}
161
162unsafe extern "system" fn EnableMemPattern(options: *mut OrtSessionOptions) -> OrtStatusPtr {
163 OrtStatusPtr::default()
164}
165
166unsafe extern "system" fn DisableMemPattern(options: *mut OrtSessionOptions) -> OrtStatusPtr {
167 OrtStatusPtr::default()
168}
169
170unsafe extern "system" fn EnableCpuMemArena(options: *mut OrtSessionOptions) -> OrtStatusPtr {
171 OrtStatusPtr::default()
172}
173
174unsafe extern "system" fn DisableCpuMemArena(options: *mut OrtSessionOptions) -> OrtStatusPtr {
175 OrtStatusPtr::default()
176}
177
178unsafe extern "system" fn SetSessionLogId(options: *mut OrtSessionOptions, logid: *const ::core::ffi::c_char) -> OrtStatusPtr {
179 OrtStatusPtr::default()
180}
181
182unsafe extern "system" fn SetSessionLogVerbosityLevel(options: *mut OrtSessionOptions, session_log_verbosity_level: ::core::ffi::c_int) -> OrtStatusPtr {
183 OrtStatusPtr::default()
184}
185
186unsafe extern "system" fn SetSessionLogSeverityLevel(options: *mut OrtSessionOptions, session_log_severity_level: ::core::ffi::c_int) -> OrtStatusPtr {
187 OrtStatusPtr::default()
188}
189
190unsafe extern "system" fn SetSessionGraphOptimizationLevel(options: *mut OrtSessionOptions, graph_optimization_level: GraphOptimizationLevel) -> OrtStatusPtr {
191 OrtStatusPtr::default()
192}
193
194unsafe extern "system" fn SetIntraOpNumThreads(options: *mut OrtSessionOptions, intra_op_num_threads: ::core::ffi::c_int) -> OrtStatusPtr {
195 OrtStatusPtr::default()
196}
197
198unsafe extern "system" fn SetInterOpNumThreads(options: *mut OrtSessionOptions, inter_op_num_threads: ::core::ffi::c_int) -> OrtStatusPtr {
199 OrtStatusPtr::default()
200}
201
202unsafe extern "system" fn CreateCustomOpDomain(domain: *const ::core::ffi::c_char, out: *mut *mut OrtCustomOpDomain) -> OrtStatusPtr {
203 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
204}
205
206unsafe extern "system" fn CustomOpDomain_Add(custom_op_domain: *mut OrtCustomOpDomain, op: *const OrtCustomOp) -> OrtStatusPtr {
207 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
208}
209
210unsafe extern "system" fn AddCustomOpDomain(options: *mut OrtSessionOptions, custom_op_domain: *mut OrtCustomOpDomain) -> OrtStatusPtr {
211 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
212}
213
214unsafe extern "system" fn RegisterCustomOpsLibrary(
215 options: *mut OrtSessionOptions,
216 library_path: *const ::core::ffi::c_char,
217 library_handle: *mut *mut ::core::ffi::c_void
218) -> OrtStatusPtr {
219 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
220}
221
222unsafe extern "system" fn SessionGetInputCount(session: *const OrtSession, out: *mut usize) -> OrtStatusPtr {
223 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
224}
225
226unsafe extern "system" fn SessionGetOutputCount(session: *const OrtSession, out: *mut usize) -> OrtStatusPtr {
227 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
228}
229
230unsafe extern "system" fn SessionGetOverridableInitializerCount(session: *const OrtSession, out: *mut usize) -> OrtStatusPtr {
231 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
232}
233
234unsafe extern "system" fn SessionGetInputTypeInfo(session: *const OrtSession, index: usize, type_info: *mut *mut OrtTypeInfo) -> OrtStatusPtr {
235 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
236}
237
238unsafe extern "system" fn SessionGetOutputTypeInfo(session: *const OrtSession, index: usize, type_info: *mut *mut OrtTypeInfo) -> OrtStatusPtr {
239 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
240}
241
242unsafe extern "system" fn SessionGetOverridableInitializerTypeInfo(session: *const OrtSession, index: usize, type_info: *mut *mut OrtTypeInfo) -> OrtStatusPtr {
243 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
244}
245
246unsafe extern "system" fn SessionGetInputName(
247 session: *const OrtSession,
248 index: usize,
249 allocator: *mut OrtAllocator,
250 value: *mut *mut ::core::ffi::c_char
251) -> OrtStatusPtr {
252 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
253}
254
255unsafe extern "system" fn SessionGetOutputName(
256 session: *const OrtSession,
257 index: usize,
258 allocator: *mut OrtAllocator,
259 value: *mut *mut ::core::ffi::c_char
260) -> OrtStatusPtr {
261 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
262}
263
264unsafe extern "system" fn SessionGetOverridableInitializerName(
265 session: *const OrtSession,
266 index: usize,
267 allocator: *mut OrtAllocator,
268 value: *mut *mut ::core::ffi::c_char
269) -> OrtStatusPtr {
270 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
271}
272
273unsafe extern "system" fn CreateRunOptions(out: *mut *mut OrtRunOptions) -> OrtStatusPtr {
274 unsafe { *out = ptr::dangling_mut() };
275 OrtStatusPtr::default()
276}
277
278unsafe extern "system" fn RunOptionsSetRunLogVerbosityLevel(options: *mut OrtRunOptions, log_verbosity_level: ::core::ffi::c_int) -> OrtStatusPtr {
279 OrtStatusPtr::default()
280}
281
282unsafe extern "system" fn RunOptionsSetRunLogSeverityLevel(options: *mut OrtRunOptions, log_severity_level: ::core::ffi::c_int) -> OrtStatusPtr {
283 OrtStatusPtr::default()
284}
285
286unsafe extern "system" fn RunOptionsSetRunTag(options: *mut OrtRunOptions, run_tag: *const ::core::ffi::c_char) -> OrtStatusPtr {
287 OrtStatusPtr::default()
288}
289
290unsafe extern "system" fn RunOptionsGetRunLogVerbosityLevel(options: *const OrtRunOptions, log_verbosity_level: *mut ::core::ffi::c_int) -> OrtStatusPtr {
291 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
292}
293
294unsafe extern "system" fn RunOptionsGetRunLogSeverityLevel(options: *const OrtRunOptions, log_severity_level: *mut ::core::ffi::c_int) -> OrtStatusPtr {
295 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
296}
297
298unsafe extern "system" fn RunOptionsGetRunTag(options: *const OrtRunOptions, run_tag: *mut *const ::core::ffi::c_char) -> OrtStatusPtr {
299 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
300}
301
302unsafe extern "system" fn RunOptionsSetTerminate(options: *mut OrtRunOptions) -> OrtStatusPtr {
303 OrtStatusPtr::default()
304}
305
306unsafe extern "system" fn RunOptionsUnsetTerminate(options: *mut OrtRunOptions) -> OrtStatusPtr {
307 OrtStatusPtr::default()
308}
309
310unsafe extern "system" fn CreateTensorAsOrtValue(
311 allocator: *mut OrtAllocator,
312 shape: *const i64,
313 shape_len: usize,
314 type_: ONNXTensorElementDataType,
315 out: *mut *mut OrtValue
316) -> OrtStatusPtr {
317 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
318}
319
320unsafe extern "system" fn CreateTensorWithDataAsOrtValue(
321 info: *const OrtMemoryInfo,
322 p_data: *mut ::core::ffi::c_void,
323 p_data_len: usize,
324 shape: *const i64,
325 shape_len: usize,
326 type_: ONNXTensorElementDataType,
327 out: *mut *mut OrtValue
328) -> OrtStatusPtr {
329 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
330}
331
332unsafe extern "system" fn IsTensor(value: *const OrtValue, out: *mut ::core::ffi::c_int) -> OrtStatusPtr {
333 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
334}
335
336unsafe extern "system" fn GetTensorMutableData(value: *mut OrtValue, out: *mut *mut ::core::ffi::c_void) -> OrtStatusPtr {
337 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
338}
339
340unsafe extern "system" fn FillStringTensor(value: *mut OrtValue, s: *const *const ::core::ffi::c_char, s_len: usize) -> OrtStatusPtr {
341 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
342}
343
344unsafe extern "system" fn GetStringTensorDataLength(value: *const OrtValue, len: *mut usize) -> OrtStatusPtr {
345 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
346}
347
348unsafe extern "system" fn GetStringTensorContent(
349 value: *const OrtValue,
350 s: *mut ::core::ffi::c_void,
351 s_len: usize,
352 offsets: *mut usize,
353 offsets_len: usize
354) -> OrtStatusPtr {
355 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
356}
357
358unsafe extern "system" fn CastTypeInfoToTensorInfo(type_info: *const OrtTypeInfo, out: *mut *const OrtTensorTypeAndShapeInfo) -> OrtStatusPtr {
359 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
360}
361
362unsafe extern "system" fn GetOnnxTypeFromTypeInfo(type_info: *const OrtTypeInfo, out: *mut ONNXType) -> OrtStatusPtr {
363 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
364}
365
366unsafe extern "system" fn CreateTensorTypeAndShapeInfo(out: *mut *mut OrtTensorTypeAndShapeInfo) -> OrtStatusPtr {
367 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
368}
369
370unsafe extern "system" fn SetTensorElementType(info: *mut OrtTensorTypeAndShapeInfo, type_: ONNXTensorElementDataType) -> OrtStatusPtr {
371 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
372}
373
374unsafe extern "system" fn SetDimensions(info: *mut OrtTensorTypeAndShapeInfo, dim_values: *const i64, dim_count: usize) -> OrtStatusPtr {
375 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
376}
377
378unsafe extern "system" fn GetTensorElementType(info: *const OrtTensorTypeAndShapeInfo, out: *mut ONNXTensorElementDataType) -> OrtStatusPtr {
379 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
380}
381
382unsafe extern "system" fn GetDimensionsCount(info: *const OrtTensorTypeAndShapeInfo, out: *mut usize) -> OrtStatusPtr {
383 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
384}
385
386unsafe extern "system" fn GetDimensions(info: *const OrtTensorTypeAndShapeInfo, dim_values: *mut i64, dim_values_length: usize) -> OrtStatusPtr {
387 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
388}
389
390unsafe extern "system" fn GetSymbolicDimensions(
391 info: *const OrtTensorTypeAndShapeInfo,
392 dim_params: *mut *const ::core::ffi::c_char,
393 dim_params_length: usize
394) -> OrtStatusPtr {
395 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
396}
397
398unsafe extern "system" fn GetTensorShapeElementCount(info: *const OrtTensorTypeAndShapeInfo, out: *mut usize) -> OrtStatusPtr {
399 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
400}
401
402unsafe extern "system" fn GetTensorTypeAndShape(value: *const OrtValue, out: *mut *mut OrtTensorTypeAndShapeInfo) -> OrtStatusPtr {
403 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
404}
405
406unsafe extern "system" fn GetTypeInfo(value: *const OrtValue, out: *mut *mut OrtTypeInfo) -> OrtStatusPtr {
407 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
408}
409
410unsafe extern "system" fn GetValueType(value: *const OrtValue, out: *mut ONNXType) -> OrtStatusPtr {
411 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
412}
413
414unsafe extern "system" fn CreateMemoryInfo(
415 name: *const ::core::ffi::c_char,
416 type_: OrtAllocatorType,
417 id: ::core::ffi::c_int,
418 mem_type: OrtMemType,
419 out: *mut *mut OrtMemoryInfo
420) -> OrtStatusPtr {
421 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
422}
423
424unsafe extern "system" fn CreateCpuMemoryInfo(type_: OrtAllocatorType, mem_type: OrtMemType, out: *mut *mut OrtMemoryInfo) -> OrtStatusPtr {
425 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
426}
427
428unsafe extern "system" fn CompareMemoryInfo(info1: *const OrtMemoryInfo, info2: *const OrtMemoryInfo, out: *mut ::core::ffi::c_int) -> OrtStatusPtr {
429 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
430}
431
432unsafe extern "system" fn MemoryInfoGetName(ptr: *const OrtMemoryInfo, out: *mut *const ::core::ffi::c_char) -> OrtStatusPtr {
433 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
434}
435
436unsafe extern "system" fn MemoryInfoGetId(ptr: *const OrtMemoryInfo, out: *mut ::core::ffi::c_int) -> OrtStatusPtr {
437 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
438}
439
440unsafe extern "system" fn MemoryInfoGetMemType(ptr: *const OrtMemoryInfo, out: *mut OrtMemType) -> OrtStatusPtr {
441 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
442}
443
444unsafe extern "system" fn MemoryInfoGetType(ptr: *const OrtMemoryInfo, out: *mut OrtAllocatorType) -> OrtStatusPtr {
445 unsafe { *out = OrtAllocatorType::OrtDeviceAllocator };
446 OrtStatusPtr::default()
447}
448
449unsafe extern "system" fn AllocatorAlloc(ort_allocator: *mut OrtAllocator, size: usize, out: *mut *mut ::core::ffi::c_void) -> OrtStatusPtr {
450 unsafe { *out = (&*ort_allocator).Alloc.unwrap()(ort_allocator, size) };
451 if unsafe { *out }.is_null() {
452 return Error::new_sys(OrtErrorCode::ORT_RUNTIME_EXCEPTION, "Allocation failed");
453 }
454 OrtStatusPtr::default()
455}
456
457unsafe extern "system" fn AllocatorFree(ort_allocator: *mut OrtAllocator, p: *mut ::core::ffi::c_void) -> OrtStatusPtr {
458 unsafe { (&*ort_allocator).Free.unwrap()(ort_allocator, p) };
459 OrtStatusPtr::default()
460}
461
462unsafe extern "system" fn AllocatorGetInfo(ort_allocator: *const OrtAllocator, out: *mut *const OrtMemoryInfo) -> OrtStatusPtr {
463 unsafe { *out = (&*ort_allocator).Info.unwrap()(ort_allocator) };
464 OrtStatusPtr::default()
465}
466
467unsafe extern "system" fn GetAllocatorWithDefaultOptions(out: *mut *mut OrtAllocator) -> OrtStatusPtr {
468 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
469}
470
471unsafe extern "system" fn AddFreeDimensionOverride(
472 options: *mut OrtSessionOptions,
473 dim_denotation: *const ::core::ffi::c_char,
474 dim_value: i64
475) -> OrtStatusPtr {
476 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
477}
478
479unsafe extern "system" fn GetValue(value: *const OrtValue, index: ::core::ffi::c_int, allocator: *mut OrtAllocator, out: *mut *mut OrtValue) -> OrtStatusPtr {
480 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
481}
482
483unsafe extern "system" fn GetValueCount(value: *const OrtValue, out: *mut usize) -> OrtStatusPtr {
484 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
485}
486
487unsafe extern "system" fn CreateValue(in_: *const *const OrtValue, num_values: usize, value_type: ONNXType, out: *mut *mut OrtValue) -> OrtStatusPtr {
488 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
489}
490
491unsafe extern "system" fn CreateOpaqueValue(
492 domain_name: *const ::core::ffi::c_char,
493 type_name: *const ::core::ffi::c_char,
494 data_container: *const ::core::ffi::c_void,
495 data_container_size: usize,
496 out: *mut *mut OrtValue
497) -> OrtStatusPtr {
498 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
499}
500
501unsafe extern "system" fn GetOpaqueValue(
502 domain_name: *const ::core::ffi::c_char,
503 type_name: *const ::core::ffi::c_char,
504 in_: *const OrtValue,
505 data_container: *mut ::core::ffi::c_void,
506 data_container_size: usize
507) -> OrtStatusPtr {
508 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
509}
510
511unsafe extern "system" fn KernelInfoGetAttribute_float(info: *const OrtKernelInfo, name: *const ::core::ffi::c_char, out: *mut f32) -> OrtStatusPtr {
512 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
513}
514
515unsafe extern "system" fn KernelInfoGetAttribute_int64(info: *const OrtKernelInfo, name: *const ::core::ffi::c_char, out: *mut i64) -> OrtStatusPtr {
516 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
517}
518
519unsafe extern "system" fn KernelInfoGetAttribute_string(
520 info: *const OrtKernelInfo,
521 name: *const ::core::ffi::c_char,
522 out: *mut ::core::ffi::c_char,
523 size: *mut usize
524) -> OrtStatusPtr {
525 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
526}
527
528unsafe extern "system" fn KernelContext_GetInputCount(context: *const OrtKernelContext, out: *mut usize) -> OrtStatusPtr {
529 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
530}
531
532unsafe extern "system" fn KernelContext_GetOutputCount(context: *const OrtKernelContext, out: *mut usize) -> OrtStatusPtr {
533 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
534}
535
536unsafe extern "system" fn KernelContext_GetInput(context: *const OrtKernelContext, index: usize, out: *mut *const OrtValue) -> OrtStatusPtr {
537 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
538}
539
540unsafe extern "system" fn KernelContext_GetOutput(
541 context: *mut OrtKernelContext,
542 index: usize,
543 dim_values: *const i64,
544 dim_count: usize,
545 out: *mut *mut OrtValue
546) -> OrtStatusPtr {
547 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
548}
549
550unsafe extern "system" fn ReleaseEnv(input: *mut OrtEnv) {}
551
552unsafe extern "system" fn ReleaseStatus(input: *mut OrtStatus) {
553 drop(unsafe { Error::consume_sys(input) });
554}
555
556unsafe extern "system" fn ReleaseMemoryInfo(input: *mut OrtMemoryInfo) {}
557
558unsafe extern "system" fn ReleaseSession(input: *mut OrtSession) {}
559
560unsafe extern "system" fn ReleaseValue(input: *mut OrtValue) {}
561
562unsafe extern "system" fn ReleaseRunOptions(input: *mut OrtRunOptions) {}
563
564unsafe extern "system" fn ReleaseTypeInfo(input: *mut OrtTypeInfo) {}
565
566unsafe extern "system" fn ReleaseTensorTypeAndShapeInfo(input: *mut OrtTensorTypeAndShapeInfo) {}
567
568unsafe extern "system" fn ReleaseSessionOptions(input: *mut OrtSessionOptions) {}
569
570unsafe extern "system" fn ReleaseCustomOpDomain(input: *mut OrtCustomOpDomain) {}
571
572unsafe extern "system" fn GetDenotationFromTypeInfo(
573 type_info: *const OrtTypeInfo,
574 denotation: *mut *const ::core::ffi::c_char,
575 len: *mut usize
576) -> OrtStatusPtr {
577 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
578}
579
580unsafe extern "system" fn CastTypeInfoToMapTypeInfo(type_info: *const OrtTypeInfo, out: *mut *const OrtMapTypeInfo) -> OrtStatusPtr {
581 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
582}
583
584unsafe extern "system" fn CastTypeInfoToSequenceTypeInfo(type_info: *const OrtTypeInfo, out: *mut *const OrtSequenceTypeInfo) -> OrtStatusPtr {
585 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
586}
587
588unsafe extern "system" fn GetMapKeyType(map_type_info: *const OrtMapTypeInfo, out: *mut ONNXTensorElementDataType) -> OrtStatusPtr {
589 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
590}
591
592unsafe extern "system" fn GetMapValueType(map_type_info: *const OrtMapTypeInfo, type_info: *mut *mut OrtTypeInfo) -> OrtStatusPtr {
593 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
594}
595
596unsafe extern "system" fn GetSequenceElementType(sequence_type_info: *const OrtSequenceTypeInfo, type_info: *mut *mut OrtTypeInfo) -> OrtStatusPtr {
597 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
598}
599
600unsafe extern "system" fn ReleaseMapTypeInfo(input: *mut OrtMapTypeInfo) {}
601
602unsafe extern "system" fn ReleaseSequenceTypeInfo(input: *mut OrtSequenceTypeInfo) {}
603
604unsafe extern "system" fn SessionEndProfiling(session: *mut OrtSession, allocator: *mut OrtAllocator, out: *mut *mut ::core::ffi::c_char) -> OrtStatusPtr {
605 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
606}
607
608unsafe extern "system" fn SessionGetModelMetadata(session: *const OrtSession, out: *mut *mut OrtModelMetadata) -> OrtStatusPtr {
609 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
610}
611
612unsafe extern "system" fn ModelMetadataGetProducerName(
613 model_metadata: *const OrtModelMetadata,
614 allocator: *mut OrtAllocator,
615 value: *mut *mut ::core::ffi::c_char
616) -> OrtStatusPtr {
617 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
618}
619
620unsafe extern "system" fn ModelMetadataGetGraphName(
621 model_metadata: *const OrtModelMetadata,
622 allocator: *mut OrtAllocator,
623 value: *mut *mut ::core::ffi::c_char
624) -> OrtStatusPtr {
625 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
626}
627
628unsafe extern "system" fn ModelMetadataGetDomain(
629 model_metadata: *const OrtModelMetadata,
630 allocator: *mut OrtAllocator,
631 value: *mut *mut ::core::ffi::c_char
632) -> OrtStatusPtr {
633 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
634}
635
636unsafe extern "system" fn ModelMetadataGetDescription(
637 model_metadata: *const OrtModelMetadata,
638 allocator: *mut OrtAllocator,
639 value: *mut *mut ::core::ffi::c_char
640) -> OrtStatusPtr {
641 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
642}
643
644unsafe extern "system" fn ModelMetadataLookupCustomMetadataMap(
645 model_metadata: *const OrtModelMetadata,
646 allocator: *mut OrtAllocator,
647 key: *const ::core::ffi::c_char,
648 value: *mut *mut ::core::ffi::c_char
649) -> OrtStatusPtr {
650 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
651}
652
653unsafe extern "system" fn ModelMetadataGetVersion(model_metadata: *const OrtModelMetadata, value: *mut i64) -> OrtStatusPtr {
654 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
655}
656
657unsafe extern "system" fn ReleaseModelMetadata(input: *mut OrtModelMetadata) {}
658
659unsafe extern "system" fn CreateEnvWithGlobalThreadPools(
660 log_severity_level: OrtLoggingLevel,
661 logid: *const ::core::ffi::c_char,
662 tp_options: *const OrtThreadingOptions,
663 out: *mut *mut OrtEnv
664) -> OrtStatusPtr {
665 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
666}
667
668unsafe extern "system" fn DisablePerSessionThreads(options: *mut OrtSessionOptions) -> OrtStatusPtr {
669 OrtStatusPtr::default()
670}
671
672unsafe extern "system" fn CreateThreadingOptions(out: *mut *mut OrtThreadingOptions) -> OrtStatusPtr {
673 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
674}
675
676unsafe extern "system" fn ReleaseThreadingOptions(input: *mut OrtThreadingOptions) {}
677
678unsafe extern "system" fn ModelMetadataGetCustomMetadataMapKeys(
679 model_metadata: *const OrtModelMetadata,
680 allocator: *mut OrtAllocator,
681 keys: *mut *mut *mut ::core::ffi::c_char,
682 num_keys: *mut i64
683) -> OrtStatusPtr {
684 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
685}
686
687unsafe extern "system" fn AddFreeDimensionOverrideByName(
688 options: *mut OrtSessionOptions,
689 dim_name: *const ::core::ffi::c_char,
690 dim_value: i64
691) -> OrtStatusPtr {
692 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
693}
694
695unsafe extern "system" fn GetAvailableProviders(out_ptr: *mut *mut *mut ::core::ffi::c_char, provider_length: *mut ::core::ffi::c_int) -> OrtStatusPtr {
696 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
697}
698
699unsafe extern "system" fn ReleaseAvailableProviders(ptr: *mut *mut ::core::ffi::c_char, providers_length: ::core::ffi::c_int) -> OrtStatusPtr {
700 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
701}
702
703unsafe extern "system" fn GetStringTensorElementLength(value: *const OrtValue, index: usize, out: *mut usize) -> OrtStatusPtr {
704 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
705}
706
707unsafe extern "system" fn GetStringTensorElement(value: *const OrtValue, s_len: usize, index: usize, s: *mut ::core::ffi::c_void) -> OrtStatusPtr {
708 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
709}
710
711unsafe extern "system" fn FillStringTensorElement(value: *mut OrtValue, s: *const ::core::ffi::c_char, index: usize) -> OrtStatusPtr {
712 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
713}
714
715unsafe extern "system" fn AddSessionConfigEntry(
716 options: *mut OrtSessionOptions,
717 config_key: *const ::core::ffi::c_char,
718 config_value: *const ::core::ffi::c_char
719) -> OrtStatusPtr {
720 OrtStatusPtr::default()
721}
722
723unsafe extern "system" fn CreateAllocator(session: *const OrtSession, mem_info: *const OrtMemoryInfo, out: *mut *mut OrtAllocator) -> OrtStatusPtr {
724 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
725}
726
727unsafe extern "system" fn ReleaseAllocator(input: *mut OrtAllocator) {}
728
729unsafe extern "system" fn RunWithBinding(session: *mut OrtSession, run_options: *const OrtRunOptions, binding_ptr: *const OrtIoBinding) -> OrtStatusPtr {
730 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
731}
732
733unsafe extern "system" fn CreateIoBinding(session: *mut OrtSession, out: *mut *mut OrtIoBinding) -> OrtStatusPtr {
734 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
735}
736
737unsafe extern "system" fn ReleaseIoBinding(input: *mut OrtIoBinding) {}
738
739unsafe extern "system" fn BindInput(binding_ptr: *mut OrtIoBinding, name: *const ::core::ffi::c_char, val_ptr: *const OrtValue) -> OrtStatusPtr {
740 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
741}
742
743unsafe extern "system" fn BindOutput(binding_ptr: *mut OrtIoBinding, name: *const ::core::ffi::c_char, val_ptr: *const OrtValue) -> OrtStatusPtr {
744 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
745}
746
747unsafe extern "system" fn BindOutputToDevice(
748 binding_ptr: *mut OrtIoBinding,
749 name: *const ::core::ffi::c_char,
750 mem_info_ptr: *const OrtMemoryInfo
751) -> OrtStatusPtr {
752 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
753}
754
755unsafe extern "system" fn GetBoundOutputNames(
756 binding_ptr: *const OrtIoBinding,
757 allocator: *mut OrtAllocator,
758 buffer: *mut *mut ::core::ffi::c_char,
759 lengths: *mut *mut usize,
760 count: *mut usize
761) -> OrtStatusPtr {
762 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
763}
764
765unsafe extern "system" fn GetBoundOutputValues(
766 binding_ptr: *const OrtIoBinding,
767 allocator: *mut OrtAllocator,
768 output: *mut *mut *mut OrtValue,
769 output_count: *mut usize
770) -> OrtStatusPtr {
771 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
772}
773
774unsafe extern "system" fn ClearBoundInputs(binding_ptr: *mut OrtIoBinding) {}
775
776unsafe extern "system" fn ClearBoundOutputs(binding_ptr: *mut OrtIoBinding) {}
777
778unsafe extern "system" fn TensorAt(
779 value: *mut OrtValue,
780 location_values: *const i64,
781 location_values_count: usize,
782 out: *mut *mut ::core::ffi::c_void
783) -> OrtStatusPtr {
784 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
785}
786
787unsafe extern "system" fn CreateAndRegisterAllocator(env: *mut OrtEnv, mem_info: *const OrtMemoryInfo, arena_cfg: *const OrtArenaCfg) -> OrtStatusPtr {
788 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
789}
790
791unsafe extern "system" fn SetLanguageProjection(ort_env: *const OrtEnv, projection: OrtLanguageProjection) -> OrtStatusPtr {
792 OrtStatusPtr::default()
793}
794
795unsafe extern "system" fn SessionGetProfilingStartTimeNs(session: *const OrtSession, out: *mut u64) -> OrtStatusPtr {
796 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
797}
798
799unsafe extern "system" fn SetGlobalIntraOpNumThreads(tp_options: *mut OrtThreadingOptions, intra_op_num_threads: ::core::ffi::c_int) -> OrtStatusPtr {
800 OrtStatusPtr::default()
801}
802
803unsafe extern "system" fn SetGlobalInterOpNumThreads(tp_options: *mut OrtThreadingOptions, inter_op_num_threads: ::core::ffi::c_int) -> OrtStatusPtr {
804 OrtStatusPtr::default()
805}
806
807unsafe extern "system" fn SetGlobalSpinControl(tp_options: *mut OrtThreadingOptions, allow_spinning: ::core::ffi::c_int) -> OrtStatusPtr {
808 OrtStatusPtr::default()
809}
810
811unsafe extern "system" fn AddInitializer(options: *mut OrtSessionOptions, name: *const ::core::ffi::c_char, val: *const OrtValue) -> OrtStatusPtr {
812 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
813}
814
815unsafe extern "system" fn CreateEnvWithCustomLoggerAndGlobalThreadPools(
816 logging_function: OrtLoggingFunction,
817 logger_param: *mut ::core::ffi::c_void,
818 log_severity_level: OrtLoggingLevel,
819 logid: *const ::core::ffi::c_char,
820 tp_options: *const OrtThreadingOptions,
821 out: *mut *mut OrtEnv
822) -> OrtStatusPtr {
823 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
824}
825
826unsafe extern "system" fn SessionOptionsAppendExecutionProvider_CUDA(
827 options: *mut OrtSessionOptions,
828 cuda_options: *const OrtCUDAProviderOptions
829) -> OrtStatusPtr {
830 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
831}
832
833unsafe extern "system" fn SessionOptionsAppendExecutionProvider_ROCM(
834 options: *mut OrtSessionOptions,
835 rocm_options: *const OrtROCMProviderOptions
836) -> OrtStatusPtr {
837 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
838}
839
840unsafe extern "system" fn SessionOptionsAppendExecutionProvider_OpenVINO(
841 options: *mut OrtSessionOptions,
842 provider_options: *const OrtOpenVINOProviderOptions
843) -> OrtStatusPtr {
844 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
845}
846
847unsafe extern "system" fn SetGlobalDenormalAsZero(tp_options: *mut OrtThreadingOptions) -> OrtStatusPtr {
848 OrtStatusPtr::default()
849}
850
851unsafe extern "system" fn CreateArenaCfg(
852 max_mem: usize,
853 arena_extend_strategy: ::core::ffi::c_int,
854 initial_chunk_size_bytes: ::core::ffi::c_int,
855 max_dead_bytes_per_chunk: ::core::ffi::c_int,
856 out: *mut *mut OrtArenaCfg
857) -> OrtStatusPtr {
858 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
859}
860
861unsafe extern "system" fn ReleaseArenaCfg(input: *mut OrtArenaCfg) {}
862
863unsafe extern "system" fn ModelMetadataGetGraphDescription(
864 model_metadata: *const OrtModelMetadata,
865 allocator: *mut OrtAllocator,
866 value: *mut *mut ::core::ffi::c_char
867) -> OrtStatusPtr {
868 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
869}
870
871unsafe extern "system" fn SessionOptionsAppendExecutionProvider_TensorRT(
872 options: *mut OrtSessionOptions,
873 tensorrt_options: *const OrtTensorRTProviderOptions
874) -> OrtStatusPtr {
875 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
876}
877
878unsafe extern "system" fn SetCurrentGpuDeviceId(device_id: ::core::ffi::c_int) -> OrtStatusPtr {
879 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
880}
881
882unsafe extern "system" fn GetCurrentGpuDeviceId(device_id: *mut ::core::ffi::c_int) -> OrtStatusPtr {
883 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
884}
885
886unsafe extern "system" fn KernelInfoGetAttributeArray_float(
887 info: *const OrtKernelInfo,
888 name: *const ::core::ffi::c_char,
889 out: *mut f32,
890 size: *mut usize
891) -> OrtStatusPtr {
892 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
893}
894
895unsafe extern "system" fn KernelInfoGetAttributeArray_int64(
896 info: *const OrtKernelInfo,
897 name: *const ::core::ffi::c_char,
898 out: *mut i64,
899 size: *mut usize
900) -> OrtStatusPtr {
901 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
902}
903
904unsafe extern "system" fn CreateArenaCfgV2(
905 arena_config_keys: *const *const ::core::ffi::c_char,
906 arena_config_values: *const usize,
907 num_keys: usize,
908 out: *mut *mut OrtArenaCfg
909) -> OrtStatusPtr {
910 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
911}
912
913unsafe extern "system" fn AddRunConfigEntry(
914 options: *mut OrtRunOptions,
915 config_key: *const ::core::ffi::c_char,
916 config_value: *const ::core::ffi::c_char
917) -> OrtStatusPtr {
918 OrtStatusPtr::default()
919}
920
921unsafe extern "system" fn CreatePrepackedWeightsContainer(out: *mut *mut OrtPrepackedWeightsContainer) -> OrtStatusPtr {
922 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
923}
924
925unsafe extern "system" fn ReleasePrepackedWeightsContainer(input: *mut OrtPrepackedWeightsContainer) {}
926
927unsafe extern "system" fn CreateSessionWithPrepackedWeightsContainer(
928 env: *const OrtEnv,
929 model_path: *const os_char,
930 options: *const OrtSessionOptions,
931 prepacked_weights_container: *mut OrtPrepackedWeightsContainer,
932 out: *mut *mut OrtSession
933) -> OrtStatusPtr {
934 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
935}
936
937unsafe extern "system" fn CreateSessionFromArrayWithPrepackedWeightsContainer(
938 env: *const OrtEnv,
939 model_data: *const ::core::ffi::c_void,
940 model_data_length: usize,
941 options: *const OrtSessionOptions,
942 prepacked_weights_container: *mut OrtPrepackedWeightsContainer,
943 out: *mut *mut OrtSession
944) -> OrtStatusPtr {
945 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
946}
947
948unsafe extern "system" fn SessionOptionsAppendExecutionProvider_TensorRT_V2(
949 options: *mut OrtSessionOptions,
950 tensorrt_options: *const OrtTensorRTProviderOptionsV2
951) -> OrtStatusPtr {
952 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
953}
954
955unsafe extern "system" fn CreateTensorRTProviderOptions(out: *mut *mut OrtTensorRTProviderOptionsV2) -> OrtStatusPtr {
956 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
957}
958
959unsafe extern "system" fn UpdateTensorRTProviderOptions(
960 tensorrt_options: *mut OrtTensorRTProviderOptionsV2,
961 provider_options_keys: *const *const ::core::ffi::c_char,
962 provider_options_values: *const *const ::core::ffi::c_char,
963 num_keys: usize
964) -> OrtStatusPtr {
965 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
966}
967
968unsafe extern "system" fn GetTensorRTProviderOptionsAsString(
969 tensorrt_options: *const OrtTensorRTProviderOptionsV2,
970 allocator: *mut OrtAllocator,
971 ptr: *mut *mut ::core::ffi::c_char
972) -> OrtStatusPtr {
973 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
974}
975
976unsafe extern "system" fn ReleaseTensorRTProviderOptions(input: *mut OrtTensorRTProviderOptionsV2) {}
977
978unsafe extern "system" fn EnableOrtCustomOps(options: *mut OrtSessionOptions) -> OrtStatusPtr {
979 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
980}
981
982unsafe extern "system" fn RegisterAllocator(env: *mut OrtEnv, allocator: *mut OrtAllocator) -> OrtStatusPtr {
983 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
984}
985
986unsafe extern "system" fn UnregisterAllocator(env: *mut OrtEnv, mem_info: *const OrtMemoryInfo) -> OrtStatusPtr {
987 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
988}
989
990unsafe extern "system" fn IsSparseTensor(value: *const OrtValue, out: *mut ::core::ffi::c_int) -> OrtStatusPtr {
991 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
992}
993
994unsafe extern "system" fn CreateSparseTensorAsOrtValue(
995 allocator: *mut OrtAllocator,
996 dense_shape: *const i64,
997 dense_shape_len: usize,
998 type_: ONNXTensorElementDataType,
999 out: *mut *mut OrtValue
1000) -> OrtStatusPtr {
1001 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
1002}
1003
1004unsafe extern "system" fn FillSparseTensorCoo(
1005 ort_value: *mut OrtValue,
1006 data_mem_info: *const OrtMemoryInfo,
1007 values_shape: *const i64,
1008 values_shape_len: usize,
1009 values: *const ::core::ffi::c_void,
1010 indices_data: *const i64,
1011 indices_num: usize
1012) -> OrtStatusPtr {
1013 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
1014}
1015
1016unsafe extern "system" fn FillSparseTensorCsr(
1017 ort_value: *mut OrtValue,
1018 data_mem_info: *const OrtMemoryInfo,
1019 values_shape: *const i64,
1020 values_shape_len: usize,
1021 values: *const ::core::ffi::c_void,
1022 inner_indices_data: *const i64,
1023 inner_indices_num: usize,
1024 outer_indices_data: *const i64,
1025 outer_indices_num: usize
1026) -> OrtStatusPtr {
1027 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
1028}
1029
1030unsafe extern "system" fn FillSparseTensorBlockSparse(
1031 ort_value: *mut OrtValue,
1032 data_mem_info: *const OrtMemoryInfo,
1033 values_shape: *const i64,
1034 values_shape_len: usize,
1035 values: *const ::core::ffi::c_void,
1036 indices_shape_data: *const i64,
1037 indices_shape_len: usize,
1038 indices_data: *const i32
1039) -> OrtStatusPtr {
1040 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
1041}
1042
1043unsafe extern "system" fn CreateSparseTensorWithValuesAsOrtValue(
1044 info: *const OrtMemoryInfo,
1045 p_data: *mut ::core::ffi::c_void,
1046 dense_shape: *const i64,
1047 dense_shape_len: usize,
1048 values_shape: *const i64,
1049 values_shape_len: usize,
1050 type_: ONNXTensorElementDataType,
1051 out: *mut *mut OrtValue
1052) -> OrtStatusPtr {
1053 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
1054}
1055
1056unsafe extern "system" fn UseCooIndices(ort_value: *mut OrtValue, indices_data: *mut i64, indices_num: usize) -> OrtStatusPtr {
1057 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
1058}
1059
1060unsafe extern "system" fn UseCsrIndices(
1061 ort_value: *mut OrtValue,
1062 inner_data: *mut i64,
1063 inner_num: usize,
1064 outer_data: *mut i64,
1065 outer_num: usize
1066) -> OrtStatusPtr {
1067 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
1068}
1069
1070unsafe extern "system" fn UseBlockSparseIndices(
1071 ort_value: *mut OrtValue,
1072 indices_shape: *const i64,
1073 indices_shape_len: usize,
1074 indices_data: *mut i32
1075) -> OrtStatusPtr {
1076 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
1077}
1078
1079unsafe extern "system" fn GetSparseTensorFormat(ort_value: *const OrtValue, out: *mut OrtSparseFormat) -> OrtStatusPtr {
1080 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
1081}
1082
1083unsafe extern "system" fn GetSparseTensorValuesTypeAndShape(ort_value: *const OrtValue, out: *mut *mut OrtTensorTypeAndShapeInfo) -> OrtStatusPtr {
1084 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
1085}
1086
1087unsafe extern "system" fn GetSparseTensorValues(ort_value: *const OrtValue, out: *mut *const ::core::ffi::c_void) -> OrtStatusPtr {
1088 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
1089}
1090
1091unsafe extern "system" fn GetSparseTensorIndicesTypeShape(
1092 ort_value: *const OrtValue,
1093 indices_format: OrtSparseIndicesFormat,
1094 out: *mut *mut OrtTensorTypeAndShapeInfo
1095) -> OrtStatusPtr {
1096 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
1097}
1098
1099unsafe extern "system" fn GetSparseTensorIndices(
1100 ort_value: *const OrtValue,
1101 indices_format: OrtSparseIndicesFormat,
1102 num_indices: *mut usize,
1103 indices: *mut *const ::core::ffi::c_void
1104) -> OrtStatusPtr {
1105 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
1106}
1107
1108unsafe extern "system" fn HasValue(value: *const OrtValue, out: *mut ::core::ffi::c_int) -> OrtStatusPtr {
1109 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
1110}
1111
1112unsafe extern "system" fn KernelContext_GetGPUComputeStream(context: *const OrtKernelContext, out: *mut *mut ::core::ffi::c_void) -> OrtStatusPtr {
1113 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
1114}
1115
1116unsafe extern "system" fn GetTensorMemoryInfo(value: *const OrtValue, mem_info: *mut *const OrtMemoryInfo) -> OrtStatusPtr {
1117 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
1118}
1119
1120unsafe extern "system" fn GetExecutionProviderApi(
1121 provider_name: *const ::core::ffi::c_char,
1122 version: u32,
1123 provider_api: *mut *const ::core::ffi::c_void
1124) -> OrtStatusPtr {
1125 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
1126}
1127
1128unsafe extern "system" fn SessionOptionsSetCustomCreateThreadFn(
1129 options: *mut OrtSessionOptions,
1130 ort_custom_create_thread_fn: OrtCustomCreateThreadFn
1131) -> OrtStatusPtr {
1132 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
1133}
1134
1135unsafe extern "system" fn SessionOptionsSetCustomThreadCreationOptions(
1136 options: *mut OrtSessionOptions,
1137 ort_custom_thread_creation_options: *mut ::core::ffi::c_void
1138) -> OrtStatusPtr {
1139 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
1140}
1141
1142unsafe extern "system" fn SessionOptionsSetCustomJoinThreadFn(
1143 options: *mut OrtSessionOptions,
1144 ort_custom_join_thread_fn: OrtCustomJoinThreadFn
1145) -> OrtStatusPtr {
1146 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
1147}
1148
1149unsafe extern "system" fn SetGlobalCustomCreateThreadFn(
1150 tp_options: *mut OrtThreadingOptions,
1151 ort_custom_create_thread_fn: OrtCustomCreateThreadFn
1152) -> OrtStatusPtr {
1153 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
1154}
1155
1156unsafe extern "system" fn SetGlobalCustomThreadCreationOptions(
1157 tp_options: *mut OrtThreadingOptions,
1158 ort_custom_thread_creation_options: *mut ::core::ffi::c_void
1159) -> OrtStatusPtr {
1160 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
1161}
1162
1163unsafe extern "system" fn SetGlobalCustomJoinThreadFn(tp_options: *mut OrtThreadingOptions, ort_custom_join_thread_fn: OrtCustomJoinThreadFn) -> OrtStatusPtr {
1164 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
1165}
1166
1167unsafe extern "system" fn SynchronizeBoundInputs(binding_ptr: *mut OrtIoBinding) -> OrtStatusPtr {
1168 OrtStatusPtr::default()
1169}
1170
1171unsafe extern "system" fn SynchronizeBoundOutputs(binding_ptr: *mut OrtIoBinding) -> OrtStatusPtr {
1172 OrtStatusPtr::default()
1173}
1174
1175unsafe extern "system" fn SessionOptionsAppendExecutionProvider_CUDA_V2(
1176 options: *mut OrtSessionOptions,
1177 cuda_options: *const OrtCUDAProviderOptionsV2
1178) -> OrtStatusPtr {
1179 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
1180}
1181
1182unsafe extern "system" fn CreateCUDAProviderOptions(out: *mut *mut OrtCUDAProviderOptionsV2) -> OrtStatusPtr {
1183 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
1184}
1185
1186unsafe extern "system" fn UpdateCUDAProviderOptions(
1187 cuda_options: *mut OrtCUDAProviderOptionsV2,
1188 provider_options_keys: *const *const ::core::ffi::c_char,
1189 provider_options_values: *const *const ::core::ffi::c_char,
1190 num_keys: usize
1191) -> OrtStatusPtr {
1192 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
1193}
1194
1195unsafe extern "system" fn GetCUDAProviderOptionsAsString(
1196 cuda_options: *const OrtCUDAProviderOptionsV2,
1197 allocator: *mut OrtAllocator,
1198 ptr: *mut *mut ::core::ffi::c_char
1199) -> OrtStatusPtr {
1200 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
1201}
1202
1203unsafe extern "system" fn ReleaseCUDAProviderOptions(input: *mut OrtCUDAProviderOptionsV2) {}
1204
1205unsafe extern "system" fn SessionOptionsAppendExecutionProvider_MIGraphX(
1206 options: *mut OrtSessionOptions,
1207 migraphx_options: *const OrtMIGraphXProviderOptions
1208) -> OrtStatusPtr {
1209 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
1210}
1211
1212unsafe extern "system" fn AddExternalInitializers(
1213 options: *mut OrtSessionOptions,
1214 initializer_names: *const *const ::core::ffi::c_char,
1215 initializers: *const *const OrtValue,
1216 initializers_num: usize
1217) -> OrtStatusPtr {
1218 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
1219}
1220
1221unsafe extern "system" fn CreateOpAttr(
1222 name: *const ::core::ffi::c_char,
1223 data: *const ::core::ffi::c_void,
1224 len: ::core::ffi::c_int,
1225 type_: OrtOpAttrType,
1226 op_attr: *mut *mut OrtOpAttr
1227) -> OrtStatusPtr {
1228 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
1229}
1230
1231unsafe extern "system" fn ReleaseOpAttr(input: *mut OrtOpAttr) {}
1232
1233unsafe extern "system" fn CreateOp(
1234 info: *const OrtKernelInfo,
1235 op_name: *const ::core::ffi::c_char,
1236 domain: *const ::core::ffi::c_char,
1237 version: ::core::ffi::c_int,
1238 type_constraint_names: *mut *const ::core::ffi::c_char,
1239 type_constraint_values: *const ONNXTensorElementDataType,
1240 type_constraint_count: ::core::ffi::c_int,
1241 attr_values: *const *const OrtOpAttr,
1242 attr_count: ::core::ffi::c_int,
1243 input_count: ::core::ffi::c_int,
1244 output_count: ::core::ffi::c_int,
1245 ort_op: *mut *mut OrtOp
1246) -> OrtStatusPtr {
1247 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
1248}
1249
1250unsafe extern "system" fn InvokeOp(
1251 context: *const OrtKernelContext,
1252 ort_op: *const OrtOp,
1253 input_values: *const *const OrtValue,
1254 input_count: ::core::ffi::c_int,
1255 output_values: *const *mut OrtValue,
1256 output_count: ::core::ffi::c_int
1257) -> OrtStatusPtr {
1258 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
1259}
1260
1261unsafe extern "system" fn ReleaseOp(input: *mut OrtOp) {}
1262
1263unsafe extern "system" fn SessionOptionsAppendExecutionProvider(
1264 options: *mut OrtSessionOptions,
1265 provider_name: *const ::core::ffi::c_char,
1266 provider_options_keys: *const *const ::core::ffi::c_char,
1267 provider_options_values: *const *const ::core::ffi::c_char,
1268 num_keys: usize
1269) -> OrtStatusPtr {
1270 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
1271}
1272
1273unsafe extern "system" fn CopyKernelInfo(info: *const OrtKernelInfo, info_copy: *mut *mut OrtKernelInfo) -> OrtStatusPtr {
1274 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
1275}
1276
1277unsafe extern "system" fn ReleaseKernelInfo(input: *mut OrtKernelInfo) {}
1278
1279unsafe extern "system" fn GetTrainingApi(version: u32) -> *const OrtTrainingApi {
1280 ptr::null()
1281}
1282
1283unsafe extern "system" fn SessionOptionsAppendExecutionProvider_CANN(
1284 options: *mut OrtSessionOptions,
1285 cann_options: *const OrtCANNProviderOptions
1286) -> OrtStatusPtr {
1287 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
1288}
1289
1290unsafe extern "system" fn CreateCANNProviderOptions(out: *mut *mut OrtCANNProviderOptions) -> OrtStatusPtr {
1291 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
1292}
1293
1294unsafe extern "system" fn UpdateCANNProviderOptions(
1295 cann_options: *mut OrtCANNProviderOptions,
1296 provider_options_keys: *const *const ::core::ffi::c_char,
1297 provider_options_values: *const *const ::core::ffi::c_char,
1298 num_keys: usize
1299) -> OrtStatusPtr {
1300 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
1301}
1302
1303unsafe extern "system" fn GetCANNProviderOptionsAsString(
1304 cann_options: *const OrtCANNProviderOptions,
1305 allocator: *mut OrtAllocator,
1306 ptr: *mut *mut ::core::ffi::c_char
1307) -> OrtStatusPtr {
1308 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
1309}
1310
1311unsafe extern "system" fn ReleaseCANNProviderOptions(input: *mut OrtCANNProviderOptions) {}
1312
1313unsafe extern "system" fn MemoryInfoGetDeviceType(ptr: *const OrtMemoryInfo, out: *mut OrtMemoryInfoDeviceType) {
1314 unsafe { *out = OrtMemoryInfoDeviceType::OrtMemoryInfoDeviceType_CPU };
1315}
1316
1317unsafe extern "system" fn UpdateEnvWithCustomLogLevel(ort_env: *mut OrtEnv, log_severity_level: OrtLoggingLevel) -> OrtStatusPtr {
1318 OrtStatusPtr::default()
1319}
1320
1321unsafe extern "system" fn SetGlobalIntraOpThreadAffinity(tp_options: *mut OrtThreadingOptions, affinity_string: *const ::core::ffi::c_char) -> OrtStatusPtr {
1322 OrtStatusPtr::default()
1323}
1324
1325unsafe extern "system" fn RegisterCustomOpsLibrary_V2(options: *mut OrtSessionOptions, library_name: *const os_char) -> OrtStatusPtr {
1326 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
1327}
1328
1329unsafe extern "system" fn RegisterCustomOpsUsingFunction(options: *mut OrtSessionOptions, registration_func_name: *const ::core::ffi::c_char) -> OrtStatusPtr {
1330 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
1331}
1332
1333unsafe extern "system" fn KernelInfo_GetInputCount(info: *const OrtKernelInfo, out: *mut usize) -> OrtStatusPtr {
1334 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
1335}
1336
1337unsafe extern "system" fn KernelInfo_GetOutputCount(info: *const OrtKernelInfo, out: *mut usize) -> OrtStatusPtr {
1338 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
1339}
1340
1341unsafe extern "system" fn KernelInfo_GetInputName(info: *const OrtKernelInfo, index: usize, out: *mut ::core::ffi::c_char, size: *mut usize) -> OrtStatusPtr {
1342 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
1343}
1344
1345unsafe extern "system" fn KernelInfo_GetOutputName(info: *const OrtKernelInfo, index: usize, out: *mut ::core::ffi::c_char, size: *mut usize) -> OrtStatusPtr {
1346 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
1347}
1348
1349unsafe extern "system" fn KernelInfo_GetInputTypeInfo(info: *const OrtKernelInfo, index: usize, type_info: *mut *mut OrtTypeInfo) -> OrtStatusPtr {
1350 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
1351}
1352
1353unsafe extern "system" fn KernelInfo_GetOutputTypeInfo(info: *const OrtKernelInfo, index: usize, type_info: *mut *mut OrtTypeInfo) -> OrtStatusPtr {
1354 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
1355}
1356
1357unsafe extern "system" fn KernelInfoGetAttribute_tensor(
1358 info: *const OrtKernelInfo,
1359 name: *const ::core::ffi::c_char,
1360 allocator: *mut OrtAllocator,
1361 out: *mut *mut OrtValue
1362) -> OrtStatusPtr {
1363 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
1364}
1365
1366unsafe extern "system" fn HasSessionConfigEntry(
1367 options: *const OrtSessionOptions,
1368 config_key: *const ::core::ffi::c_char,
1369 out: *mut ::core::ffi::c_int
1370) -> OrtStatusPtr {
1371 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
1372}
1373
1374unsafe extern "system" fn GetSessionConfigEntry(
1375 options: *const OrtSessionOptions,
1376 config_key: *const ::core::ffi::c_char,
1377 config_value: *mut ::core::ffi::c_char,
1378 size: *mut usize
1379) -> OrtStatusPtr {
1380 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
1381}
1382
1383unsafe extern "system" fn SessionOptionsAppendExecutionProvider_Dnnl(
1384 options: *mut OrtSessionOptions,
1385 dnnl_options: *const OrtDnnlProviderOptions
1386) -> OrtStatusPtr {
1387 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
1388}
1389
1390unsafe extern "system" fn CreateDnnlProviderOptions(out: *mut *mut OrtDnnlProviderOptions) -> OrtStatusPtr {
1391 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
1392}
1393
1394unsafe extern "system" fn UpdateDnnlProviderOptions(
1395 dnnl_options: *mut OrtDnnlProviderOptions,
1396 provider_options_keys: *const *const ::core::ffi::c_char,
1397 provider_options_values: *const *const ::core::ffi::c_char,
1398 num_keys: usize
1399) -> OrtStatusPtr {
1400 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
1401}
1402
1403unsafe extern "system" fn GetDnnlProviderOptionsAsString(
1404 dnnl_options: *const OrtDnnlProviderOptions,
1405 allocator: *mut OrtAllocator,
1406 ptr: *mut *mut ::core::ffi::c_char
1407) -> OrtStatusPtr {
1408 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
1409}
1410
1411unsafe extern "system" fn ReleaseDnnlProviderOptions(input: *mut OrtDnnlProviderOptions) {}
1412
1413unsafe extern "system" fn KernelInfo_GetNodeName(info: *const OrtKernelInfo, out: *mut ::core::ffi::c_char, size: *mut usize) -> OrtStatusPtr {
1414 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
1415}
1416
1417unsafe extern "system" fn KernelInfo_GetLogger(info: *const OrtKernelInfo, logger: *mut *const OrtLogger) -> OrtStatusPtr {
1418 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
1419}
1420
1421unsafe extern "system" fn KernelContext_GetLogger(context: *const OrtKernelContext, logger: *mut *const OrtLogger) -> OrtStatusPtr {
1422 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
1423}
1424
1425unsafe extern "system" fn Logger_LogMessage(
1426 logger: *const OrtLogger,
1427 log_severity_level: OrtLoggingLevel,
1428 message: *const ::core::ffi::c_char,
1429 file_path: *const os_char,
1430 line_number: ::core::ffi::c_int,
1431 func_name: *const ::core::ffi::c_char
1432) -> OrtStatusPtr {
1433 OrtStatusPtr::default()
1434}
1435
1436unsafe extern "system" fn Logger_GetLoggingSeverityLevel(logger: *const OrtLogger, out: *mut OrtLoggingLevel) -> OrtStatusPtr {
1437 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
1438}
1439
1440unsafe extern "system" fn KernelInfoGetConstantInput_tensor(
1441 info: *const OrtKernelInfo,
1442 index: usize,
1443 is_constant: *mut ::core::ffi::c_int,
1444 out: *mut *const OrtValue
1445) -> OrtStatusPtr {
1446 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
1447}
1448
1449unsafe extern "system" fn CastTypeInfoToOptionalTypeInfo(type_info: *const OrtTypeInfo, out: *mut *const OrtOptionalTypeInfo) -> OrtStatusPtr {
1450 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
1451}
1452
1453unsafe extern "system" fn GetOptionalContainedTypeInfo(optional_type_info: *const OrtOptionalTypeInfo, out: *mut *mut OrtTypeInfo) -> OrtStatusPtr {
1454 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
1455}
1456
1457unsafe extern "system" fn GetResizedStringTensorElementBuffer(
1458 value: *mut OrtValue,
1459 index: usize,
1460 length_in_bytes: usize,
1461 buffer: *mut *mut ::core::ffi::c_char
1462) -> OrtStatusPtr {
1463 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
1464}
1465
1466unsafe extern "system" fn KernelContext_GetAllocator(
1467 context: *const OrtKernelContext,
1468 mem_info: *const OrtMemoryInfo,
1469 out: *mut *mut OrtAllocator
1470) -> OrtStatusPtr {
1471 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
1472}
1473
1474unsafe extern "system" fn GetBuildInfoString() -> *const ::core::ffi::c_char {
1475 c"ORT Build Info: ort-sys stub".as_ptr().cast()
1476}
1477
1478unsafe extern "system" fn CreateROCMProviderOptions(out: *mut *mut OrtROCMProviderOptions) -> OrtStatusPtr {
1479 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
1480}
1481
1482unsafe extern "system" fn UpdateROCMProviderOptions(
1483 rocm_options: *mut OrtROCMProviderOptions,
1484 provider_options_keys: *const *const ::core::ffi::c_char,
1485 provider_options_values: *const *const ::core::ffi::c_char,
1486 num_keys: usize
1487) -> OrtStatusPtr {
1488 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
1489}
1490
1491unsafe extern "system" fn GetROCMProviderOptionsAsString(
1492 rocm_options: *const OrtROCMProviderOptions,
1493 allocator: *mut OrtAllocator,
1494 ptr: *mut *mut ::core::ffi::c_char
1495) -> OrtStatusPtr {
1496 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
1497}
1498
1499unsafe extern "system" fn ReleaseROCMProviderOptions(input: *mut OrtROCMProviderOptions) {}
1500
1501unsafe extern "system" fn CreateAndRegisterAllocatorV2(
1502 env: *mut OrtEnv,
1503 provider_type: *const ::core::ffi::c_char,
1504 mem_info: *const OrtMemoryInfo,
1505 arena_cfg: *const OrtArenaCfg,
1506 provider_options_keys: *const *const ::core::ffi::c_char,
1507 provider_options_values: *const *const ::core::ffi::c_char,
1508 num_keys: usize
1509) -> OrtStatusPtr {
1510 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
1511}
1512
1513#[cfg(not(target_arch = "wasm32"))]
1514unsafe extern "system" fn RunAsync(
1515 session: *mut OrtSession,
1516 run_options: *const OrtRunOptions,
1517 input_names: *const *const ::core::ffi::c_char,
1518 input: *const *const OrtValue,
1519 input_len: usize,
1520 output_names: *const *const ::core::ffi::c_char,
1521 output_names_len: usize,
1522 output: *mut *mut OrtValue,
1523 run_async_callback: RunAsyncCallbackFn,
1524 user_data: *mut ::core::ffi::c_void
1525) -> OrtStatusPtr {
1526 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
1527}
1528
1529#[cfg(target_arch = "wasm32")]
1530unsafe fn RunAsync(
1531 session: *mut OrtSession,
1532 run_options: *const OrtRunOptions,
1533 input_names: &[&str],
1534 inputs: &[*const OrtValue],
1535 output_names: &[&str],
1536 outputs: &mut [*mut OrtValue]
1537) -> core::pin::Pin<alloc::boxed::Box<dyn core::future::Future<Output = OrtStatusPtr>>> {
1538 Box::pin(async { Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented") })
1539}
1540
1541unsafe extern "system" fn UpdateTensorRTProviderOptionsWithValue(
1542 tensorrt_options: *mut OrtTensorRTProviderOptionsV2,
1543 key: *const ::core::ffi::c_char,
1544 value: *mut ::core::ffi::c_void
1545) -> OrtStatusPtr {
1546 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
1547}
1548
1549unsafe extern "system" fn GetTensorRTProviderOptionsByName(
1550 tensorrt_options: *const OrtTensorRTProviderOptionsV2,
1551 key: *const ::core::ffi::c_char,
1552 ptr: *mut *mut ::core::ffi::c_void
1553) -> OrtStatusPtr {
1554 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
1555}
1556
1557unsafe extern "system" fn UpdateCUDAProviderOptionsWithValue(
1558 cuda_options: *mut OrtCUDAProviderOptionsV2,
1559 key: *const ::core::ffi::c_char,
1560 value: *mut ::core::ffi::c_void
1561) -> OrtStatusPtr {
1562 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
1563}
1564
1565unsafe extern "system" fn GetCUDAProviderOptionsByName(
1566 cuda_options: *const OrtCUDAProviderOptionsV2,
1567 key: *const ::core::ffi::c_char,
1568 ptr: *mut *mut ::core::ffi::c_void
1569) -> OrtStatusPtr {
1570 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
1571}
1572
1573unsafe extern "system" fn KernelContext_GetResource(
1574 context: *const OrtKernelContext,
1575 resouce_version: ::core::ffi::c_int,
1576 resource_id: ::core::ffi::c_int,
1577 resource: *mut *mut ::core::ffi::c_void
1578) -> OrtStatusPtr {
1579 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
1580}
1581
1582unsafe extern "system" fn SetUserLoggingFunction(
1583 options: *mut OrtSessionOptions,
1584 user_logging_function: OrtLoggingFunction,
1585 user_logging_param: *mut ::core::ffi::c_void
1586) -> OrtStatusPtr {
1587 OrtStatusPtr::default()
1588}
1589
1590unsafe extern "system" fn ShapeInferContext_GetInputCount(context: *const OrtShapeInferContext, out: *mut usize) -> OrtStatusPtr {
1591 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
1592}
1593
1594unsafe extern "system" fn ShapeInferContext_GetInputTypeShape(
1595 context: *const OrtShapeInferContext,
1596 index: usize,
1597 info: *mut *mut OrtTensorTypeAndShapeInfo
1598) -> OrtStatusPtr {
1599 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
1600}
1601
1602unsafe extern "system" fn ShapeInferContext_GetAttribute(
1603 context: *const OrtShapeInferContext,
1604 attr_name: *const ::core::ffi::c_char,
1605 attr: *mut *const OrtOpAttr
1606) -> OrtStatusPtr {
1607 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
1608}
1609
1610unsafe extern "system" fn ShapeInferContext_SetOutputTypeShape(
1611 context: *const OrtShapeInferContext,
1612 index: usize,
1613 info: *const OrtTensorTypeAndShapeInfo
1614) -> OrtStatusPtr {
1615 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
1616}
1617
1618unsafe extern "system" fn SetSymbolicDimensions(
1619 info: *mut OrtTensorTypeAndShapeInfo,
1620 dim_params: *mut *const ::core::ffi::c_char,
1621 dim_params_length: usize
1622) -> OrtStatusPtr {
1623 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
1624}
1625
1626unsafe extern "system" fn ReadOpAttr(
1627 op_attr: *const OrtOpAttr,
1628 type_: OrtOpAttrType,
1629 data: *mut ::core::ffi::c_void,
1630 len: usize,
1631 out: *mut usize
1632) -> OrtStatusPtr {
1633 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
1634}
1635
1636unsafe extern "system" fn SetDeterministicCompute(options: *mut OrtSessionOptions, value: bool) -> OrtStatusPtr {
1637 OrtStatusPtr::default()
1638}
1639
1640unsafe extern "system" fn KernelContext_ParallelFor(
1641 context: *const OrtKernelContext,
1642 fn_: unsafe extern "system" fn(arg1: *mut ::core::ffi::c_void, arg2: usize),
1643 total: usize,
1644 num_batch: usize,
1645 usr_data: *mut ::core::ffi::c_void
1646) -> OrtStatusPtr {
1647 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
1648}
1649
1650unsafe extern "system" fn SessionOptionsAppendExecutionProvider_OpenVINO_V2(
1651 options: *mut OrtSessionOptions,
1652 provider_options_keys: *const *const ::core::ffi::c_char,
1653 provider_options_values: *const *const ::core::ffi::c_char,
1654 num_keys: usize
1655) -> OrtStatusPtr {
1656 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
1657}
1658
1659#[cfg(feature = "api-18")]
1660unsafe extern "system" fn SessionOptionsAppendExecutionProvider_VitisAI(
1661 options: *mut OrtSessionOptions,
1662 provider_options_keys: *const *const ::core::ffi::c_char,
1663 provider_options_values: *const *const ::core::ffi::c_char,
1664 num_keys: usize
1665) -> OrtStatusPtr {
1666 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
1667}
1668
1669#[cfg(feature = "api-18")]
1670unsafe extern "system" fn KernelContext_GetScratchBuffer(
1671 context: *const OrtKernelContext,
1672 mem_info: *const OrtMemoryInfo,
1673 count_or_bytes: usize,
1674 out: *mut *mut ::core::ffi::c_void
1675) -> OrtStatusPtr {
1676 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
1677}
1678
1679#[cfg(feature = "api-18")]
1680unsafe extern "system" fn KernelInfoGetAllocator(info: *const OrtKernelInfo, mem_type: OrtMemType, out: *mut *mut OrtAllocator) -> OrtStatusPtr {
1681 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
1682}
1683
1684#[cfg(feature = "api-18")]
1685unsafe extern "system" fn AddExternalInitializersFromMemory(
1686 options: *mut OrtSessionOptions,
1687 external_initializer_file_names: *const *const os_char,
1688 external_initializer_file_buffer_array: *const *mut ::core::ffi::c_char,
1689 external_initializer_file_lengths: *const usize,
1690 num_external_initializer_files: usize
1691) -> OrtStatusPtr {
1692 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
1693}
1694
1695#[cfg(feature = "api-20")]
1696unsafe extern "system" fn CreateLoraAdapter(adapter_file_path: *const os_char, allocator: *mut OrtAllocator, out: *mut *mut OrtLoraAdapter) -> OrtStatusPtr {
1697 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
1698}
1699
1700#[cfg(feature = "api-20")]
1701unsafe extern "system" fn CreateLoraAdapterFromArray(
1702 bytes: *const ::core::ffi::c_void,
1703 num_bytes: usize,
1704 allocator: *mut OrtAllocator,
1705 out: *mut *mut OrtLoraAdapter
1706) -> OrtStatusPtr {
1707 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
1708}
1709
1710#[cfg(feature = "api-20")]
1711unsafe extern "system" fn ReleaseLoraAdapter(input: *mut OrtLoraAdapter) {}
1712
1713#[cfg(feature = "api-20")]
1714unsafe extern "system" fn RunOptionsAddActiveLoraAdapter(options: *mut OrtRunOptions, adapter: *const OrtLoraAdapter) -> OrtStatusPtr {
1715 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
1716}
1717
1718#[cfg(feature = "api-20")]
1719unsafe extern "system" fn SetEpDynamicOptions(
1720 sess: *mut OrtSession,
1721 keys: *const *const ::core::ffi::c_char,
1722 values: *const *const ::core::ffi::c_char,
1723 kv_len: usize
1724) -> OrtStatusPtr {
1725 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
1726}
1727
1728#[cfg(feature = "api-22")]
1729unsafe extern "system" fn ReleaseValueInfo(input: *mut OrtValueInfo) {}
1730
1731#[cfg(feature = "api-22")]
1732unsafe extern "system" fn ReleaseNode(input: *mut OrtNode) {}
1733
1734#[cfg(feature = "api-22")]
1735unsafe extern "system" fn ReleaseGraph(input: *mut OrtGraph) {}
1736
1737#[cfg(feature = "api-22")]
1738unsafe extern "system" fn ReleaseModel(input: *mut OrtModel) {}
1739
1740#[cfg(feature = "api-22")]
1741unsafe extern "system" fn GetValueInfoName(value_info: *const OrtValueInfo, name: *mut *const ::core::ffi::c_char) -> OrtStatusPtr {
1742 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
1743}
1744
1745#[cfg(feature = "api-22")]
1746unsafe extern "system" fn GetValueInfoTypeInfo(value_info: *const OrtValueInfo, type_info: *mut *const OrtTypeInfo) -> OrtStatusPtr {
1747 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
1748}
1749
1750#[cfg(feature = "api-22")]
1751unsafe extern "system" fn GetModelEditorApi() -> *const OrtModelEditorApi {
1752 ptr::null()
1753}
1754
1755#[cfg(feature = "api-22")]
1756unsafe extern "system" fn CreateTensorWithDataAndDeleterAsOrtValue(
1757 deleter: *mut OrtAllocator,
1758 p_data: *mut ::core::ffi::c_void,
1759 p_data_len: usize,
1760 shape: *const i64,
1761 shape_len: usize,
1762 r#type: ONNXTensorElementDataType,
1763 out: *mut *mut OrtValue
1764) -> OrtStatusPtr {
1765 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
1766}
1767
1768#[cfg(feature = "api-22")]
1769unsafe extern "system" fn SessionOptionsSetLoadCancellationFlag(options: *mut OrtSessionOptions, cancel: bool) -> OrtStatusPtr {
1770 OrtStatusPtr::default()
1771}
1772
1773#[cfg(feature = "api-22")]
1774unsafe extern "system" fn GetCompileApi() -> *const OrtCompileApi {
1775 ptr::null_mut()
1776}
1777
1778#[cfg(feature = "api-22")]
1779unsafe extern "system" fn CreateKeyValuePairs(out: *mut *mut OrtKeyValuePairs) {
1780 unsafe { *out = ptr::null_mut() };
1781}
1782
1783#[cfg(feature = "api-22")]
1784unsafe extern "system" fn AddKeyValuePair(kvps: *mut OrtKeyValuePairs, key: *const ::core::ffi::c_char, value: *const ::core::ffi::c_char) {}
1785
1786#[cfg(feature = "api-22")]
1787unsafe extern "system" fn GetKeyValue(kvps: *const OrtKeyValuePairs, key: *const ::core::ffi::c_char) -> *const ::core::ffi::c_char {
1788 ptr::null()
1789}
1790
1791#[cfg(feature = "api-22")]
1792unsafe extern "system" fn GetKeyValuePairs(
1793 kvps: *const OrtKeyValuePairs,
1794 keys: *mut *const *const ::core::ffi::c_char,
1795 values: *mut *const *const ::core::ffi::c_char,
1796 num_entries: *mut usize
1797) {
1798}
1799
1800#[cfg(feature = "api-22")]
1801unsafe extern "system" fn RemoveKeyValuePair(kvps: *mut OrtKeyValuePairs, key: *const ::core::ffi::c_char) {}
1802
1803#[cfg(feature = "api-22")]
1804unsafe extern "system" fn ReleaseKeyValuePairs(input: *mut OrtKeyValuePairs) {}
1805
1806#[cfg(feature = "api-22")]
1807unsafe extern "system" fn RegisterExecutionProviderLibrary(
1808 env: *mut OrtEnv,
1809 registration_name: *const ::core::ffi::c_char,
1810 path: *const os_char
1811) -> OrtStatusPtr {
1812 OrtStatusPtr::default()
1813}
1814
1815#[cfg(feature = "api-22")]
1816unsafe extern "system" fn UnregisterExecutionProviderLibrary(env: *mut OrtEnv, registration_name: *const ::core::ffi::c_char) -> OrtStatusPtr {
1817 OrtStatusPtr::default()
1818}
1819
1820#[cfg(feature = "api-22")]
1821unsafe extern "system" fn GetEpDevices(env: *const OrtEnv, ep_devices: *mut *const *const OrtEpDevice, num_ep_devices: *mut usize) -> OrtStatusPtr {
1822 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
1823}
1824
1825#[cfg(feature = "api-22")]
1826unsafe extern "system" fn SessionOptionsAppendExecutionProvider_V2(
1827 session_options: *mut OrtSessionOptions,
1828 env: *mut OrtEnv,
1829 ep_devices: *const *const OrtEpDevice,
1830 num_ep_devices: usize,
1831 ep_option_keys: *const *const ::core::ffi::c_char,
1832 ep_option_vals: *const *const ::core::ffi::c_char,
1833 num_ep_options: usize
1834) -> OrtStatusPtr {
1835 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
1836}
1837
1838#[cfg(feature = "api-22")]
1839unsafe extern "system" fn SessionOptionsSetEpSelectionPolicy(
1840 session_options: *mut OrtSessionOptions,
1841 policy: OrtExecutionProviderDevicePolicy
1842) -> OrtStatusPtr {
1843 OrtStatusPtr::default()
1844}
1845
1846#[cfg(feature = "api-22")]
1847unsafe extern "system" fn SessionOptionsSetEpSelectionPolicyDelegate(
1848 session_options: *mut OrtSessionOptions,
1849 delegate: EpSelectionDelegate,
1850 delegate_state: *mut ::core::ffi::c_void
1851) -> OrtStatusPtr {
1852 OrtStatusPtr::default()
1853}
1854
1855#[cfg(feature = "api-22")]
1856unsafe extern "system" fn HardwareDevice_Type(device: *const OrtHardwareDevice) -> OrtHardwareDeviceType {
1857 OrtHardwareDeviceType::OrtHardwareDeviceType_CPU
1858}
1859
1860#[cfg(feature = "api-22")]
1861unsafe extern "system" fn HardwareDevice_VendorId(device: *const OrtHardwareDevice) -> u32 {
1862 0
1863}
1864
1865#[cfg(feature = "api-22")]
1866unsafe extern "system" fn HardwareDevice_Vendor(device: *const OrtHardwareDevice) -> *const ::core::ffi::c_char {
1867 ptr::null()
1868}
1869
1870#[cfg(feature = "api-22")]
1871unsafe extern "system" fn HardwareDevice_DeviceId(device: *const OrtHardwareDevice) -> u32 {
1872 0
1873}
1874
1875#[cfg(feature = "api-22")]
1876unsafe extern "system" fn HardwareDevice_Metadata(device: *const OrtHardwareDevice) -> *const OrtKeyValuePairs {
1877 ptr::null()
1878}
1879
1880#[cfg(feature = "api-22")]
1881unsafe extern "system" fn EpDevice_EpName(ep_device: *const OrtEpDevice) -> *const ::core::ffi::c_char {
1882 ptr::null()
1883}
1884
1885#[cfg(feature = "api-22")]
1886unsafe extern "system" fn EpDevice_EpVendor(ep_device: *const OrtEpDevice) -> *const ::core::ffi::c_char {
1887 ptr::null()
1888}
1889
1890#[cfg(feature = "api-22")]
1891unsafe extern "system" fn EpDevice_EpMetadata(ep_device: *const OrtEpDevice) -> *const OrtKeyValuePairs {
1892 ptr::null()
1893}
1894
1895#[cfg(feature = "api-22")]
1896unsafe extern "system" fn EpDevice_EpOptions(ep_device: *const OrtEpDevice) -> *const OrtKeyValuePairs {
1897 ptr::null()
1898}
1899
1900#[cfg(feature = "api-22")]
1901unsafe extern "system" fn EpDevice_Device(ep_device: *const OrtEpDevice) -> *const OrtHardwareDevice {
1902 ptr::null()
1903}
1904
1905#[cfg(feature = "api-22")]
1906unsafe extern "system" fn GetEpApi() -> *const OrtEpApi {
1907 ptr::null()
1908}
1909
1910#[cfg(feature = "api-23")]
1911unsafe extern "system" fn GetTensorSizeInBytes(ort_value: *const OrtValue, size: *mut usize) -> OrtStatusPtr {
1912 unsafe { *size = 0 };
1913 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
1914}
1915
1916#[cfg(feature = "api-23")]
1917unsafe extern "system" fn AllocatorGetStats(ort_allocator: *const OrtAllocator, out: *mut *mut OrtKeyValuePairs) -> OrtStatusPtr {
1918 unsafe { *out = ptr::null_mut() };
1919 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
1920}
1921
1922#[cfg(feature = "api-23")]
1923unsafe extern "system" fn CreateMemoryInfo_V2(
1924 name: *const c_char,
1925 device_type: OrtMemoryInfoDeviceType,
1926 vendor_id: u32,
1927 device_id: i32,
1928 mem_type: OrtDeviceMemoryType,
1929 alignment: usize,
1930 allocator_type: OrtAllocatorType,
1931 out: *mut *mut OrtMemoryInfo
1932) -> OrtStatusPtr {
1933 unsafe { *out = ptr::null_mut() };
1934 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
1935}
1936
1937#[cfg(feature = "api-23")]
1938unsafe extern "system" fn MemoryInfoGetDeviceMemType(ptr: *const OrtMemoryInfo) -> OrtDeviceMemoryType {
1939 OrtDeviceMemoryType::OrtDeviceMemoryType_HOST_ACCESSIBLE
1940}
1941
1942#[cfg(feature = "api-23")]
1943unsafe extern "system" fn MemoryInfoGetVendorId(ptr: *const OrtMemoryInfo) -> u32 {
1944 0
1945}
1946
1947#[cfg(feature = "api-23")]
1948unsafe extern "system" fn ValueInfo_GetValueProducer(
1949 value_info: *const OrtValueInfo,
1950 producer_node: *mut *const OrtNode,
1951 producer_output_index: *mut usize
1952) -> OrtStatusPtr {
1953 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
1954}
1955
1956#[cfg(feature = "api-23")]
1957unsafe extern "system" fn ValueInfo_GetValueNumConsumers(value_info: *const OrtValueInfo, num_consumers: *mut usize) -> OrtStatusPtr {
1958 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
1959}
1960
1961#[cfg(feature = "api-23")]
1962unsafe extern "system" fn ValueInfo_GetValueConsumers(
1963 value_info: *const OrtValueInfo,
1964 nodes: *mut *const OrtNode,
1965 input_indices: *mut i64,
1966 num_consumers: usize
1967) -> OrtStatusPtr {
1968 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
1969}
1970
1971#[cfg(feature = "api-23")]
1972unsafe extern "system" fn ValueInfo_GetInitializerValue(value_info: *const OrtValueInfo, initializer_value: *mut *const OrtValue) -> OrtStatusPtr {
1973 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
1974}
1975
1976#[cfg(feature = "api-23")]
1977unsafe extern "system" fn ValueInfo_GetExternalInitializerInfo(value_info: *const OrtValueInfo, info: *mut *mut OrtExternalInitializerInfo) -> OrtStatusPtr {
1978 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
1979}
1980
1981#[cfg(feature = "api-23")]
1982unsafe extern "system" fn ValueInfo_IsRequiredGraphInput(value_info: *const OrtValueInfo, is_required_graph_input: *mut bool) -> OrtStatusPtr {
1983 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
1984}
1985
1986#[cfg(feature = "api-23")]
1987unsafe extern "system" fn ValueInfo_IsOptionalGraphInput(value_info: *const OrtValueInfo, is_optional_graph_input: *mut bool) -> OrtStatusPtr {
1988 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
1989}
1990
1991#[cfg(feature = "api-23")]
1992unsafe extern "system" fn ValueInfo_IsGraphOutput(value_info: *const OrtValueInfo, is_graph_output: *mut bool) -> OrtStatusPtr {
1993 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
1994}
1995
1996#[cfg(feature = "api-23")]
1997unsafe extern "system" fn ValueInfo_IsConstantInitializer(value_info: *const OrtValueInfo, is_constant_initializer: *mut bool) -> OrtStatusPtr {
1998 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
1999}
2000
2001#[cfg(feature = "api-23")]
2002unsafe extern "system" fn ValueInfo_IsFromOuterScope(value_info: *const OrtValueInfo, is_from_outer_scope: *mut bool) -> OrtStatusPtr {
2003 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
2004}
2005
2006#[cfg(feature = "api-23")]
2007unsafe extern "system" fn Graph_GetName(graph: *const OrtGraph, graph_name: *mut *const c_char) -> OrtStatusPtr {
2008 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
2009}
2010
2011#[cfg(feature = "api-23")]
2012unsafe extern "system" fn Graph_GetModelPath(graph: *const OrtGraph, model_path: *mut *const os_char) -> OrtStatusPtr {
2013 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
2014}
2015
2016#[cfg(feature = "api-23")]
2017unsafe extern "system" fn Graph_GetOnnxIRVersion(graph: *const OrtGraph, onnx_ir_version: *mut i64) -> OrtStatusPtr {
2018 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
2019}
2020
2021#[cfg(feature = "api-23")]
2022unsafe extern "system" fn Graph_GetNumOperatorSets(graph: *const OrtGraph, num_operator_sets: *mut usize) -> OrtStatusPtr {
2023 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
2024}
2025
2026#[cfg(feature = "api-23")]
2027unsafe extern "system" fn Graph_GetOperatorSets(
2028 graph: *const OrtGraph,
2029 domains: *mut *const c_char,
2030 opset_versions: *mut i64,
2031 num_operator_sets: usize
2032) -> OrtStatusPtr {
2033 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
2034}
2035
2036#[cfg(feature = "api-23")]
2037unsafe extern "system" fn Graph_GetNumInputs(graph: *const OrtGraph, num_inputs: *mut usize) -> OrtStatusPtr {
2038 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
2039}
2040
2041#[cfg(feature = "api-23")]
2042unsafe extern "system" fn Graph_GetInputs(graph: *const OrtGraph, inputs: *mut *const OrtValueInfo, num_inputs: usize) -> OrtStatusPtr {
2043 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
2044}
2045
2046#[cfg(feature = "api-23")]
2047unsafe extern "system" fn Graph_GetNumOutputs(graph: *const OrtGraph, num_outputs: *mut usize) -> OrtStatusPtr {
2048 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
2049}
2050
2051#[cfg(feature = "api-23")]
2052unsafe extern "system" fn Graph_GetOutputs(graph: *const OrtGraph, outputs: *mut *const OrtValueInfo, num_outputs: usize) -> OrtStatusPtr {
2053 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
2054}
2055
2056#[cfg(feature = "api-23")]
2057unsafe extern "system" fn Graph_GetNumInitializers(graph: *const OrtGraph, num_initializers: *mut usize) -> OrtStatusPtr {
2058 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
2059}
2060
2061#[cfg(feature = "api-23")]
2062unsafe extern "system" fn Graph_GetInitializers(graph: *const OrtGraph, initializers: *mut *const OrtValueInfo, num_initializers: usize) -> OrtStatusPtr {
2063 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
2064}
2065
2066#[cfg(feature = "api-23")]
2067unsafe extern "system" fn Graph_GetNumNodes(graph: *const OrtGraph, num_nodes: *mut usize) -> OrtStatusPtr {
2068 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
2069}
2070
2071#[cfg(feature = "api-23")]
2072unsafe extern "system" fn Graph_GetNodes(graph: *const OrtGraph, nodes: *mut *const OrtNode, num_nodes: usize) -> OrtStatusPtr {
2073 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
2074}
2075
2076#[cfg(feature = "api-23")]
2077unsafe extern "system" fn Graph_GetParentNode(graph: *const OrtGraph, node: *mut *const OrtNode) -> OrtStatusPtr {
2078 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
2079}
2080
2081#[cfg(feature = "api-23")]
2082unsafe extern "system" fn Graph_GetGraphView(
2083 src_graph: *const OrtGraph,
2084 nodes: *mut *const OrtNode,
2085 num_nodes: usize,
2086 dst_graph: *mut *mut OrtGraph
2087) -> OrtStatusPtr {
2088 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
2089}
2090
2091#[cfg(feature = "api-23")]
2092unsafe extern "system" fn Node_GetId(node: *const OrtNode, node_id: *mut usize) -> OrtStatusPtr {
2093 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
2094}
2095
2096#[cfg(feature = "api-23")]
2097unsafe extern "system" fn Node_GetName(node: *const OrtNode, node_name: *mut *const c_char) -> OrtStatusPtr {
2098 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
2099}
2100
2101#[cfg(feature = "api-23")]
2102unsafe extern "system" fn Node_GetOperatorType(node: *const OrtNode, operator_type: *mut *const c_char) -> OrtStatusPtr {
2103 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
2104}
2105
2106#[cfg(feature = "api-23")]
2107unsafe extern "system" fn Node_GetDomain(node: *const OrtNode, domain_name: *mut *const c_char) -> OrtStatusPtr {
2108 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
2109}
2110
2111#[cfg(feature = "api-23")]
2112unsafe extern "system" fn Node_GetSinceVersion(node: *const OrtNode, since_version: *mut i32) -> OrtStatusPtr {
2113 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
2114}
2115
2116#[cfg(feature = "api-23")]
2117unsafe extern "system" fn Node_GetNumInputs(node: *const OrtNode, num_inputs: *mut usize) -> OrtStatusPtr {
2118 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
2119}
2120
2121#[cfg(feature = "api-23")]
2122unsafe extern "system" fn Node_GetInputs(node: *const OrtNode, inputs: *mut *const OrtValueInfo, num_inputs: usize) -> OrtStatusPtr {
2123 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
2124}
2125
2126#[cfg(feature = "api-23")]
2127unsafe extern "system" fn Node_GetNumOutputs(node: *const OrtNode, num_outputs: *mut usize) -> OrtStatusPtr {
2128 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
2129}
2130
2131#[cfg(feature = "api-23")]
2132unsafe extern "system" fn Node_GetOutputs(node: *const OrtNode, outputs: *mut *const OrtValueInfo, num_outputs: usize) -> OrtStatusPtr {
2133 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
2134}
2135
2136#[cfg(feature = "api-23")]
2137unsafe extern "system" fn Node_GetNumImplicitInputs(node: *const OrtNode, num_implicit_inputs: *mut usize) -> OrtStatusPtr {
2138 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
2139}
2140
2141#[cfg(feature = "api-23")]
2142unsafe extern "system" fn Node_GetImplicitInputs(node: *const OrtNode, implicit_inputs: *mut *const OrtValueInfo, num_implicit_inputs: usize) -> OrtStatusPtr {
2143 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
2144}
2145
2146#[cfg(feature = "api-23")]
2147unsafe extern "system" fn Node_GetNumAttributes(node: *const OrtNode, num_attributes: *mut usize) -> OrtStatusPtr {
2148 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
2149}
2150
2151#[cfg(feature = "api-23")]
2152unsafe extern "system" fn Node_GetAttributes(node: *const OrtNode, attributes: *mut *const OrtOpAttr, num_attributes: usize) -> OrtStatusPtr {
2153 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
2154}
2155
2156#[cfg(feature = "api-23")]
2157unsafe extern "system" fn Node_GetAttributeByName(node: *const OrtNode, attribute_name: *const c_char, attribute: *mut *const OrtOpAttr) -> OrtStatusPtr {
2158 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
2159}
2160
2161#[cfg(feature = "api-23")]
2162unsafe extern "system" fn OpAttr_GetTensorAttributeAsOrtValue(attribute: *const OrtOpAttr, attr_tensor: *mut *mut OrtValue) -> OrtStatusPtr {
2163 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
2164}
2165
2166#[cfg(feature = "api-23")]
2167unsafe extern "system" fn OpAttr_GetType(attribute: *const OrtOpAttr, r#type: *mut OrtOpAttrType) -> OrtStatusPtr {
2168 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
2169}
2170
2171#[cfg(feature = "api-23")]
2172unsafe extern "system" fn OpAttr_GetName(attribute: *const OrtOpAttr, name: *mut *const c_char) -> OrtStatusPtr {
2173 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
2174}
2175
2176#[cfg(feature = "api-23")]
2177unsafe extern "system" fn Node_GetNumSubgraphs(node: *const OrtNode, num_subgraphs: *mut usize) -> OrtStatusPtr {
2178 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
2179}
2180
2181#[cfg(feature = "api-23")]
2182unsafe extern "system" fn Node_GetSubgraphs(
2183 node: *const OrtNode,
2184 subgraphs: *mut *const OrtGraph,
2185 num_subgraphs: *mut usize,
2186 attribute_names: *mut *const c_char
2187) -> OrtStatusPtr {
2188 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
2189}
2190
2191#[cfg(feature = "api-23")]
2192unsafe extern "system" fn Node_GetGraph(node: *const OrtNode, graph: *mut *const OrtGraph) -> OrtStatusPtr {
2193 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
2194}
2195
2196#[cfg(feature = "api-23")]
2197unsafe extern "system" fn Node_GetEpName(node: *const OrtNode, out: *mut *const c_char) -> OrtStatusPtr {
2198 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
2199}
2200
2201#[cfg(feature = "api-23")]
2202unsafe extern "system" fn ReleaseExternalInitializerInfo(value: *mut OrtExternalInitializerInfo) {}
2203
2204#[cfg(feature = "api-23")]
2205unsafe extern "system" fn ExternalInitializerInfo_GetFilePath(info: *const OrtExternalInitializerInfo) -> *const os_char {
2206 ptr::null()
2207}
2208
2209#[cfg(feature = "api-23")]
2210unsafe extern "system" fn ExternalInitializerInfo_GetFileOffset(info: *const OrtExternalInitializerInfo) -> i64 {
2211 0
2212}
2213
2214#[cfg(feature = "api-23")]
2215unsafe extern "system" fn ExternalInitializerInfo_GetByteSize(info: *const OrtExternalInitializerInfo) -> usize {
2216 0
2217}
2218
2219#[cfg(feature = "api-23")]
2220unsafe extern "system" fn GetRunConfigEntry(options: *const OrtRunOptions, config_key: *const c_char) -> *const c_char {
2221 ptr::null()
2222}
2223
2224#[cfg(feature = "api-23")]
2225unsafe extern "system" fn EpDevice_MemoryInfo(ep_device: *const OrtEpDevice, memory_type: OrtDeviceMemoryType) -> *const OrtMemoryInfo {
2226 ptr::null()
2227}
2228
2229#[cfg(feature = "api-23")]
2230unsafe extern "system" fn CreateSharedAllocator(
2231 env: *mut OrtEnv,
2232 ep_device: *const OrtEpDevice,
2233 mem_type: OrtDeviceMemoryType,
2234 allocator_type: OrtAllocatorType,
2235 allocator_options: *const OrtKeyValuePairs,
2236 allocator: *mut *mut OrtAllocator
2237) -> OrtStatusPtr {
2238 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
2239}
2240
2241#[cfg(feature = "api-23")]
2242unsafe extern "system" fn GetSharedAllocator(env: *mut OrtEnv, mem_info: *const OrtMemoryInfo, allocator: *mut *mut OrtAllocator) -> OrtStatusPtr {
2243 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
2244}
2245
2246#[cfg(feature = "api-23")]
2247unsafe extern "system" fn ReleaseSharedAllocator(env: *mut OrtEnv, ep_device: *const OrtEpDevice, mem_type: OrtDeviceMemoryType) -> OrtStatusPtr {
2248 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
2249}
2250
2251#[cfg(feature = "api-23")]
2252unsafe extern "system" fn GetTensorData(value: *const OrtValue, out: *mut *const c_void) -> OrtStatusPtr {
2253 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
2254}
2255
2256#[cfg(feature = "api-23")]
2257unsafe extern "system" fn GetSessionOptionsConfigEntries(options: *const OrtSessionOptions, out: *mut *mut OrtKeyValuePairs) -> OrtStatusPtr {
2258 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
2259}
2260
2261#[cfg(feature = "api-23")]
2262unsafe extern "system" fn SessionGetMemoryInfoForInputs(
2263 session: *const OrtSession,
2264 inputs_memory_info: *mut *const OrtMemoryInfo,
2265 num_inputs: usize
2266) -> OrtStatusPtr {
2267 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
2268}
2269
2270#[cfg(feature = "api-23")]
2271unsafe extern "system" fn SessionGetMemoryInfoForOutputs(
2272 session: *const OrtSession,
2273 outputs_memory_info: *mut *const OrtMemoryInfo,
2274 num_outputs: usize
2275) -> OrtStatusPtr {
2276 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
2277}
2278
2279#[cfg(feature = "api-23")]
2280unsafe extern "system" fn SessionGetEpDeviceForInputs(
2281 session: *const OrtSession,
2282 inputs_ep_devices: *mut *const OrtEpDevice,
2283 num_inputs: usize
2284) -> OrtStatusPtr {
2285 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
2286}
2287
2288#[cfg(feature = "api-23")]
2289unsafe extern "system" fn CreateSyncStreamForEpDevice(
2290 ep_device: *const OrtEpDevice,
2291 stream_options: *const OrtKeyValuePairs,
2292 stream: *mut *mut OrtSyncStream
2293) -> OrtStatusPtr {
2294 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
2295}
2296
2297#[cfg(feature = "api-23")]
2298unsafe extern "system" fn SyncStream_GetHandle(stream: *mut OrtSyncStream) -> *mut c_void {
2299 ptr::null_mut()
2300}
2301
2302#[cfg(feature = "api-23")]
2303unsafe extern "system" fn ReleaseSyncStream(value: *mut OrtSyncStream) {}
2304
2305#[cfg(feature = "api-23")]
2306unsafe extern "system" fn CopyTensors(
2307 env: *mut OrtEnv,
2308 src_tensors: *const *const OrtValue,
2309 dst_tensors: *mut *const OrtValue,
2310 stream: *mut OrtSyncStream,
2311 num_tensors: usize
2312) -> OrtStatusPtr {
2313 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
2314}
2315
2316#[cfg(feature = "api-23")]
2317unsafe extern "system" fn Graph_GetModelMetadata(graph: *mut OrtGraph, out: *mut *mut OrtModelMetadata) -> OrtStatusPtr {
2318 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
2319}
2320
2321#[cfg(feature = "api-23")]
2322unsafe extern "system" fn GetModelCompatibilityForEpDevices(
2323 ep_devices: *const *const OrtEpDevice,
2324 num_ep_devices: usize,
2325 compatibility_info: *const c_char,
2326 out_status: *mut OrtCompiledModelCompatibility
2327) -> OrtStatusPtr {
2328 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
2329}
2330
2331#[cfg(feature = "api-23")]
2332unsafe extern "system" fn CreateExternalInitializerInfo(
2333 filepath: *const os_char,
2334 file_offset: i64,
2335 byte_size: usize,
2336 out: *mut *mut OrtExternalInitializerInfo
2337) -> OrtStatusPtr {
2338 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
2339}
2340
2341#[cfg(feature = "api-24")]
2342unsafe extern "system" fn TensorTypeAndShape_HasShape(info: *const OrtTensorTypeAndShapeInfo) -> bool {
2343 false
2344}
2345
2346#[cfg(feature = "api-24")]
2347unsafe extern "system" fn KernelInfo_GetConfigEntries(info: *const OrtKernelInfo, out: *mut *mut OrtKeyValuePairs) -> OrtStatusPtr {
2348 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
2349}
2350
2351#[cfg(feature = "api-24")]
2352unsafe extern "system" fn KernelInfo_GetOperatorDomain(info: *const OrtKernelInfo, out: *mut c_char, size: *mut usize) -> OrtStatusPtr {
2353 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
2354}
2355
2356#[cfg(feature = "api-24")]
2357unsafe extern "system" fn KernelInfo_GetOperatorType(info: *const OrtKernelInfo, out: *mut c_char, size: *mut usize) -> OrtStatusPtr {
2358 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
2359}
2360
2361#[cfg(feature = "api-24")]
2362unsafe extern "system" fn KernelInfo_GetOperatorSinceVersion(info: *const OrtKernelInfo, since_version: *mut i32) -> OrtStatusPtr {
2363 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
2364}
2365
2366#[cfg(feature = "api-24")]
2367unsafe extern "system" fn GetInteropApi() -> *const OrtInteropApi {
2368 ptr::null()
2369}
2370
2371#[cfg(feature = "api-24")]
2372unsafe extern "system" fn SessionGetEpDeviceForOutputs(
2373 session: *const OrtSession,
2374 outputs_ep_devices: *mut *const OrtEpDevice,
2375 num_outputs: usize
2376) -> OrtStatusPtr {
2377 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
2378}
2379
2380#[cfg(feature = "api-24")]
2381unsafe extern "system" fn GetNumHardwareDevices(env: *const OrtEnv, num_devices: *mut usize) -> OrtStatusPtr {
2382 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
2383}
2384
2385#[cfg(feature = "api-24")]
2386unsafe extern "system" fn GetHardwareDevices(env: *const OrtEnv, devices: *mut *const OrtHardwareDevice, num_devices: *mut usize) -> OrtStatusPtr {
2387 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
2388}
2389
2390#[cfg(feature = "api-24")]
2391unsafe extern "system" fn GetHardwareDeviceEpIncompatibilityDetails(
2392 env: *const OrtEnv,
2393 ep_name: *const c_char,
2394 hw: *const OrtHardwareDevice,
2395 details: *mut *mut OrtDeviceEpIncompatibilityDetails
2396) -> OrtStatusPtr {
2397 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
2398}
2399
2400#[cfg(feature = "api-24")]
2401unsafe extern "system" fn DeviceEpIncompatibilityDetails_GetReasonsBitmask(
2402 details: *const OrtDeviceEpIncompatibilityDetails,
2403 reasons_bitmask: *mut u32
2404) -> OrtStatusPtr {
2405 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
2406}
2407
2408#[cfg(feature = "api-24")]
2409unsafe extern "system" fn DeviceEpIncompatibilityDetails_GetNotes(
2410 details: *const OrtDeviceEpIncompatibilityDetails,
2411 notes: *mut *const c_char
2412) -> OrtStatusPtr {
2413 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
2414}
2415
2416#[cfg(feature = "api-24")]
2417unsafe extern "system" fn DeviceEpIncompatibilityDetails_GetErrorCode(details: *const OrtDeviceEpIncompatibilityDetails, error_code: *mut i32) -> OrtStatusPtr {
2418 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
2419}
2420
2421#[cfg(feature = "api-24")]
2422unsafe extern "system" fn ReleaseDeviceEpIncompatibilityDetails(value: *mut OrtDeviceEpIncompatibilityDetails) {}
2423
2424#[cfg(feature = "api-24")]
2425unsafe extern "system" fn GetCompatibilityInfoFromModel(
2426 model_path: *const os_char,
2427 ep_type: *const c_char,
2428 allocator: *mut OrtAllocator,
2429 compatibility_info: *mut *mut c_char
2430) -> OrtStatusPtr {
2431 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
2432}
2433
2434#[cfg(feature = "api-24")]
2435unsafe extern "system" fn GetCompatibilityInfoFromModelBytes(
2436 model_data: *const c_void,
2437 model_data_length: usize,
2438 ep_type: *const c_char,
2439 allocator: *mut OrtAllocator,
2440 compatibility_info: *mut *mut c_char
2441) -> OrtStatusPtr {
2442 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
2443}
2444
2445#[cfg(feature = "api-24")]
2446unsafe extern "system" fn CreateEnvWithOptions(options: *const OrtEnvCreationOptions, out: *mut *mut OrtEnv) -> OrtStatusPtr {
2447 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
2448}
2449
2450#[cfg(feature = "api-24")]
2451unsafe extern "system" fn Session_GetEpGraphAssignmentInfo(
2452 session: *const OrtSession,
2453 ep_subgraphs: *mut *const *const OrtEpAssignedSubgraph,
2454 num_ep_subgraphs: *mut usize
2455) -> OrtStatusPtr {
2456 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
2457}
2458
2459#[cfg(feature = "api-24")]
2460unsafe extern "system" fn EpAssignedSubgraph_GetEpName(ep_subgraph: *const OrtEpAssignedSubgraph, out: *mut *const c_char) -> OrtStatusPtr {
2461 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
2462}
2463
2464#[cfg(feature = "api-24")]
2465unsafe extern "system" fn EpAssignedSubgraph_GetNodes(
2466 ep_subgraph: *const OrtEpAssignedSubgraph,
2467 ep_nodes: *mut *const *const OrtEpAssignedNode,
2468 num_ep_nodes: *mut usize
2469) -> OrtStatusPtr {
2470 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
2471}
2472
2473#[cfg(feature = "api-24")]
2474unsafe extern "system" fn EpAssignedNode_GetName(ep_node: *const OrtEpAssignedNode, out: *mut *const c_char) -> OrtStatusPtr {
2475 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
2476}
2477
2478#[cfg(feature = "api-24")]
2479unsafe extern "system" fn EpAssignedNode_GetDomain(ep_node: *const OrtEpAssignedNode, out: *mut *const c_char) -> OrtStatusPtr {
2480 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
2481}
2482
2483#[cfg(feature = "api-24")]
2484unsafe extern "system" fn EpAssignedNode_GetOperatorType(ep_node: *const OrtEpAssignedNode, out: *mut *const c_char) -> OrtStatusPtr {
2485 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
2486}
2487
2488#[cfg(feature = "api-24")]
2489unsafe extern "system" fn RunOptionsSetSyncStream(options: *mut OrtRunOptions, sync_stream: *mut OrtSyncStream) {}
2490
2491#[cfg(feature = "api-24")]
2492unsafe extern "system" fn GetTensorElementTypeAndShapeDataReference(
2493 value: *const OrtValue,
2494 elem_type: *mut ONNXTensorElementDataType,
2495 shape_data: *mut *const i64,
2496 shape_data_count: *mut usize
2497) -> OrtStatusPtr {
2498 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
2499}
2500
2501#[cfg(feature = "api-25")]
2502unsafe extern "system" fn RunOptionsEnableProfiling(options: *mut OrtRunOptions, profile_file_prefix: *const os_char) -> OrtStatusPtr {
2503 OrtStatusPtr::default()
2504}
2505
2506#[cfg(feature = "api-25")]
2507unsafe extern "system" fn RunOptionsDisableProfiling(options: *mut OrtRunOptions) -> OrtStatusPtr {
2508 OrtStatusPtr::default()
2509}
2510
2511#[cfg(feature = "api-25")]
2512unsafe extern "system" fn KernelInfoGetAttributeArray_string(
2513 info: *const OrtKernelInfo,
2514 name: *const c_char,
2515 allocator: *mut OrtAllocator,
2516 out: *mut *mut *mut c_char,
2517 size: *mut usize
2518) -> OrtStatusPtr {
2519 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
2520}
2521
2522#[cfg(feature = "api-25")]
2523unsafe extern "system" fn SetPerSessionThreadPoolCallbacks(env: *mut OrtEnv, config: *const OrtThreadPoolCallbacksConfig) -> OrtStatusPtr {
2524 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
2525}
2526
2527#[cfg(feature = "api-27")]
2528unsafe extern "system" fn GetMemPatternEnabled(options: *const OrtSessionOptions, out: *mut ::core::ffi::c_int) -> OrtStatusPtr {
2529 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
2530}
2531
2532#[cfg(feature = "api-27")]
2533unsafe extern "system" fn GetSessionExecutionMode(options: *const OrtSessionOptions, out: *mut ExecutionMode) -> OrtStatusPtr {
2534 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
2535}
2536
2537#[cfg(feature = "api-27")]
2538unsafe extern "system" fn SessionReleaseCapturedGraph(session: *mut OrtSession, graph_annotation_id: ::core::ffi::c_int) -> OrtStatusPtr {
2539 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
2540}
2541
2542#[cfg(feature = "api-28")]
2543unsafe extern "system" fn GetExperimentalFunction(name: *const c_char) -> *const c_void {
2544 ptr::null()
2545}
2546
2547#[cfg(feature = "api-28")]
2548unsafe extern "system" fn KernelContext_GetSyncStream(context: *const OrtKernelContext, out: *mut *mut OrtSyncStream) -> OrtStatusPtr {
2549 unsafe { *out = ptr::null_mut() };
2550 Error::new_sys(OrtErrorCode::ORT_NOT_IMPLEMENTED, "Unimplemented")
2551}
2552
2553pub const fn api() -> OrtApi {
2554 OrtApi {
2555 CreateStatus,
2556 GetErrorCode,
2557 GetErrorMessage,
2558 CreateEnv,
2559 CreateEnvWithCustomLogger,
2560 EnableTelemetryEvents,
2561 DisableTelemetryEvents,
2562 CreateSession,
2563 CreateSessionFromArray,
2564 Run,
2565 CreateSessionOptions,
2566 SetOptimizedModelFilePath,
2567 CloneSessionOptions,
2568 SetSessionExecutionMode,
2569 EnableProfiling,
2570 DisableProfiling,
2571 EnableMemPattern,
2572 DisableMemPattern,
2573 EnableCpuMemArena,
2574 DisableCpuMemArena,
2575 SetSessionLogId,
2576 SetSessionLogVerbosityLevel,
2577 SetSessionLogSeverityLevel,
2578 SetSessionGraphOptimizationLevel,
2579 SetIntraOpNumThreads,
2580 SetInterOpNumThreads,
2581 CreateCustomOpDomain,
2582 CustomOpDomain_Add,
2583 AddCustomOpDomain,
2584 RegisterCustomOpsLibrary,
2585 SessionGetInputCount,
2586 SessionGetOutputCount,
2587 SessionGetOverridableInitializerCount,
2588 SessionGetInputTypeInfo,
2589 SessionGetOutputTypeInfo,
2590 SessionGetOverridableInitializerTypeInfo,
2591 SessionGetInputName,
2592 SessionGetOutputName,
2593 SessionGetOverridableInitializerName,
2594 CreateRunOptions,
2595 RunOptionsSetRunLogVerbosityLevel,
2596 RunOptionsSetRunLogSeverityLevel,
2597 RunOptionsSetRunTag,
2598 RunOptionsGetRunLogVerbosityLevel,
2599 RunOptionsGetRunLogSeverityLevel,
2600 RunOptionsGetRunTag,
2601 RunOptionsSetTerminate,
2602 RunOptionsUnsetTerminate,
2603 CreateTensorAsOrtValue,
2604 CreateTensorWithDataAsOrtValue,
2605 IsTensor,
2606 GetTensorMutableData,
2607 FillStringTensor,
2608 GetStringTensorDataLength,
2609 GetStringTensorContent,
2610 CastTypeInfoToTensorInfo,
2611 GetOnnxTypeFromTypeInfo,
2612 CreateTensorTypeAndShapeInfo,
2613 SetTensorElementType,
2614 SetDimensions,
2615 GetTensorElementType,
2616 GetDimensionsCount,
2617 GetDimensions,
2618 GetSymbolicDimensions,
2619 GetTensorShapeElementCount,
2620 GetTensorTypeAndShape,
2621 GetTypeInfo,
2622 GetValueType,
2623 CreateMemoryInfo,
2624 CreateCpuMemoryInfo,
2625 CompareMemoryInfo,
2626 MemoryInfoGetName,
2627 MemoryInfoGetId,
2628 MemoryInfoGetMemType,
2629 MemoryInfoGetType,
2630 AllocatorAlloc,
2631 AllocatorFree,
2632 AllocatorGetInfo,
2633 GetAllocatorWithDefaultOptions,
2634 AddFreeDimensionOverride,
2635 GetValue,
2636 GetValueCount,
2637 CreateValue,
2638 CreateOpaqueValue,
2639 GetOpaqueValue,
2640 KernelInfoGetAttribute_float,
2641 KernelInfoGetAttribute_int64,
2642 KernelInfoGetAttribute_string,
2643 KernelContext_GetInputCount,
2644 KernelContext_GetOutputCount,
2645 KernelContext_GetInput,
2646 KernelContext_GetOutput,
2647 ReleaseEnv,
2648 ReleaseStatus,
2649 ReleaseMemoryInfo,
2650 ReleaseSession,
2651 ReleaseValue,
2652 ReleaseRunOptions,
2653 ReleaseTypeInfo,
2654 ReleaseTensorTypeAndShapeInfo,
2655 ReleaseSessionOptions,
2656 ReleaseCustomOpDomain,
2657 GetDenotationFromTypeInfo,
2658 CastTypeInfoToMapTypeInfo,
2659 CastTypeInfoToSequenceTypeInfo,
2660 GetMapKeyType,
2661 GetMapValueType,
2662 GetSequenceElementType,
2663 ReleaseMapTypeInfo,
2664 ReleaseSequenceTypeInfo,
2665 SessionEndProfiling,
2666 SessionGetModelMetadata,
2667 ModelMetadataGetProducerName,
2668 ModelMetadataGetGraphName,
2669 ModelMetadataGetDomain,
2670 ModelMetadataGetDescription,
2671 ModelMetadataLookupCustomMetadataMap,
2672 ModelMetadataGetVersion,
2673 ReleaseModelMetadata,
2674 CreateEnvWithGlobalThreadPools,
2675 DisablePerSessionThreads,
2676 CreateThreadingOptions,
2677 ReleaseThreadingOptions,
2678 ModelMetadataGetCustomMetadataMapKeys,
2679 AddFreeDimensionOverrideByName,
2680 GetAvailableProviders,
2681 ReleaseAvailableProviders,
2682 GetStringTensorElementLength,
2683 GetStringTensorElement,
2684 FillStringTensorElement,
2685 AddSessionConfigEntry,
2686 CreateAllocator,
2687 ReleaseAllocator,
2688 RunWithBinding,
2689 CreateIoBinding,
2690 ReleaseIoBinding,
2691 BindInput,
2692 BindOutput,
2693 BindOutputToDevice,
2694 GetBoundOutputNames,
2695 GetBoundOutputValues,
2696 ClearBoundInputs,
2697 ClearBoundOutputs,
2698 TensorAt,
2699 CreateAndRegisterAllocator,
2700 SetLanguageProjection,
2701 SessionGetProfilingStartTimeNs,
2702 SetGlobalIntraOpNumThreads,
2703 SetGlobalInterOpNumThreads,
2704 SetGlobalSpinControl,
2705 AddInitializer,
2706 CreateEnvWithCustomLoggerAndGlobalThreadPools,
2707 SessionOptionsAppendExecutionProvider_CUDA,
2708 SessionOptionsAppendExecutionProvider_ROCM,
2709 SessionOptionsAppendExecutionProvider_OpenVINO,
2710 SetGlobalDenormalAsZero,
2711 CreateArenaCfg,
2712 ReleaseArenaCfg,
2713 ModelMetadataGetGraphDescription,
2714 SessionOptionsAppendExecutionProvider_TensorRT,
2715 SetCurrentGpuDeviceId,
2716 GetCurrentGpuDeviceId,
2717 KernelInfoGetAttributeArray_float,
2718 KernelInfoGetAttributeArray_int64,
2719 CreateArenaCfgV2,
2720 AddRunConfigEntry,
2721 CreatePrepackedWeightsContainer,
2722 ReleasePrepackedWeightsContainer,
2723 CreateSessionWithPrepackedWeightsContainer,
2724 CreateSessionFromArrayWithPrepackedWeightsContainer,
2725 SessionOptionsAppendExecutionProvider_TensorRT_V2,
2726 CreateTensorRTProviderOptions,
2727 UpdateTensorRTProviderOptions,
2728 GetTensorRTProviderOptionsAsString,
2729 ReleaseTensorRTProviderOptions,
2730 EnableOrtCustomOps,
2731 RegisterAllocator,
2732 UnregisterAllocator,
2733 IsSparseTensor,
2734 CreateSparseTensorAsOrtValue,
2735 FillSparseTensorCoo,
2736 FillSparseTensorCsr,
2737 FillSparseTensorBlockSparse,
2738 CreateSparseTensorWithValuesAsOrtValue,
2739 UseCooIndices,
2740 UseCsrIndices,
2741 UseBlockSparseIndices,
2742 GetSparseTensorFormat,
2743 GetSparseTensorValuesTypeAndShape,
2744 GetSparseTensorValues,
2745 GetSparseTensorIndicesTypeShape,
2746 GetSparseTensorIndices,
2747 HasValue,
2748 KernelContext_GetGPUComputeStream,
2749 GetTensorMemoryInfo,
2750 GetExecutionProviderApi,
2751 SessionOptionsSetCustomCreateThreadFn,
2752 SessionOptionsSetCustomThreadCreationOptions,
2753 SessionOptionsSetCustomJoinThreadFn,
2754 SetGlobalCustomCreateThreadFn,
2755 SetGlobalCustomThreadCreationOptions,
2756 SetGlobalCustomJoinThreadFn,
2757 SynchronizeBoundInputs,
2758 SynchronizeBoundOutputs,
2759 SessionOptionsAppendExecutionProvider_CUDA_V2,
2760 CreateCUDAProviderOptions,
2761 UpdateCUDAProviderOptions,
2762 GetCUDAProviderOptionsAsString,
2763 ReleaseCUDAProviderOptions,
2764 SessionOptionsAppendExecutionProvider_MIGraphX,
2765 AddExternalInitializers,
2766 CreateOpAttr,
2767 ReleaseOpAttr,
2768 CreateOp,
2769 InvokeOp,
2770 ReleaseOp,
2771 SessionOptionsAppendExecutionProvider,
2772 CopyKernelInfo,
2773 ReleaseKernelInfo,
2774 GetTrainingApi,
2775 SessionOptionsAppendExecutionProvider_CANN,
2776 CreateCANNProviderOptions,
2777 UpdateCANNProviderOptions,
2778 GetCANNProviderOptionsAsString,
2779 ReleaseCANNProviderOptions,
2780 MemoryInfoGetDeviceType,
2781 UpdateEnvWithCustomLogLevel,
2782 SetGlobalIntraOpThreadAffinity,
2783 RegisterCustomOpsLibrary_V2,
2784 RegisterCustomOpsUsingFunction,
2785 KernelInfo_GetInputCount,
2786 KernelInfo_GetOutputCount,
2787 KernelInfo_GetInputName,
2788 KernelInfo_GetOutputName,
2789 KernelInfo_GetInputTypeInfo,
2790 KernelInfo_GetOutputTypeInfo,
2791 KernelInfoGetAttribute_tensor,
2792 HasSessionConfigEntry,
2793 GetSessionConfigEntry,
2794 SessionOptionsAppendExecutionProvider_Dnnl,
2795 CreateDnnlProviderOptions,
2796 UpdateDnnlProviderOptions,
2797 GetDnnlProviderOptionsAsString,
2798 ReleaseDnnlProviderOptions,
2799 KernelInfo_GetNodeName,
2800 KernelInfo_GetLogger,
2801 KernelContext_GetLogger,
2802 Logger_LogMessage,
2803 Logger_GetLoggingSeverityLevel,
2804 KernelInfoGetConstantInput_tensor,
2805 CastTypeInfoToOptionalTypeInfo,
2806 GetOptionalContainedTypeInfo,
2807 GetResizedStringTensorElementBuffer,
2808 KernelContext_GetAllocator,
2809 GetBuildInfoString,
2810 CreateROCMProviderOptions,
2811 UpdateROCMProviderOptions,
2812 GetROCMProviderOptionsAsString,
2813 ReleaseROCMProviderOptions,
2814 CreateAndRegisterAllocatorV2,
2815 RunAsync,
2816 UpdateTensorRTProviderOptionsWithValue,
2817 GetTensorRTProviderOptionsByName,
2818 UpdateCUDAProviderOptionsWithValue,
2819 GetCUDAProviderOptionsByName,
2820 KernelContext_GetResource,
2821 SetUserLoggingFunction,
2822 ShapeInferContext_GetInputCount,
2823 ShapeInferContext_GetInputTypeShape,
2824 ShapeInferContext_GetAttribute,
2825 ShapeInferContext_SetOutputTypeShape,
2826 SetSymbolicDimensions,
2827 ReadOpAttr,
2828 SetDeterministicCompute,
2829 KernelContext_ParallelFor,
2830 SessionOptionsAppendExecutionProvider_OpenVINO_V2,
2831 #[cfg(feature = "api-18")]
2832 SessionOptionsAppendExecutionProvider_VitisAI,
2833 #[cfg(feature = "api-18")]
2834 KernelContext_GetScratchBuffer,
2835 #[cfg(feature = "api-18")]
2836 KernelInfoGetAllocator,
2837 #[cfg(feature = "api-18")]
2838 AddExternalInitializersFromMemory,
2839 #[cfg(feature = "api-20")]
2840 CreateLoraAdapter,
2841 #[cfg(feature = "api-20")]
2842 CreateLoraAdapterFromArray,
2843 #[cfg(feature = "api-20")]
2844 ReleaseLoraAdapter,
2845 #[cfg(feature = "api-20")]
2846 RunOptionsAddActiveLoraAdapter,
2847 #[cfg(feature = "api-20")]
2848 SetEpDynamicOptions,
2849 #[cfg(feature = "api-22")]
2850 ReleaseValueInfo,
2851 #[cfg(feature = "api-22")]
2852 ReleaseNode,
2853 #[cfg(feature = "api-22")]
2854 ReleaseGraph,
2855 #[cfg(feature = "api-22")]
2856 ReleaseModel,
2857 #[cfg(feature = "api-22")]
2858 GetValueInfoName,
2859 #[cfg(feature = "api-22")]
2860 GetValueInfoTypeInfo,
2861 #[cfg(feature = "api-22")]
2862 GetModelEditorApi,
2863 #[cfg(feature = "api-22")]
2864 CreateTensorWithDataAndDeleterAsOrtValue,
2865 #[cfg(feature = "api-22")]
2866 SessionOptionsSetLoadCancellationFlag,
2867 #[cfg(feature = "api-22")]
2868 GetCompileApi,
2869 #[cfg(feature = "api-22")]
2870 CreateKeyValuePairs,
2871 #[cfg(feature = "api-22")]
2872 AddKeyValuePair,
2873 #[cfg(feature = "api-22")]
2874 GetKeyValue,
2875 #[cfg(feature = "api-22")]
2876 GetKeyValuePairs,
2877 #[cfg(feature = "api-22")]
2878 RemoveKeyValuePair,
2879 #[cfg(feature = "api-22")]
2880 ReleaseKeyValuePairs,
2881 #[cfg(feature = "api-22")]
2882 RegisterExecutionProviderLibrary,
2883 #[cfg(feature = "api-22")]
2884 UnregisterExecutionProviderLibrary,
2885 #[cfg(feature = "api-22")]
2886 GetEpDevices,
2887 #[cfg(feature = "api-22")]
2888 SessionOptionsAppendExecutionProvider_V2,
2889 #[cfg(feature = "api-22")]
2890 SessionOptionsSetEpSelectionPolicy,
2891 #[cfg(feature = "api-22")]
2892 SessionOptionsSetEpSelectionPolicyDelegate,
2893 #[cfg(feature = "api-22")]
2894 HardwareDevice_Type,
2895 #[cfg(feature = "api-22")]
2896 HardwareDevice_VendorId,
2897 #[cfg(feature = "api-22")]
2898 HardwareDevice_Vendor,
2899 #[cfg(feature = "api-22")]
2900 HardwareDevice_DeviceId,
2901 #[cfg(feature = "api-22")]
2902 HardwareDevice_Metadata,
2903 #[cfg(feature = "api-22")]
2904 EpDevice_EpName,
2905 #[cfg(feature = "api-22")]
2906 EpDevice_EpVendor,
2907 #[cfg(feature = "api-22")]
2908 EpDevice_EpMetadata,
2909 #[cfg(feature = "api-22")]
2910 EpDevice_EpOptions,
2911 #[cfg(feature = "api-22")]
2912 EpDevice_Device,
2913 #[cfg(feature = "api-22")]
2914 GetEpApi,
2915 #[cfg(feature = "api-23")]
2916 GetTensorSizeInBytes,
2917 #[cfg(feature = "api-23")]
2918 AllocatorGetStats,
2919 #[cfg(feature = "api-23")]
2920 CreateMemoryInfo_V2,
2921 #[cfg(feature = "api-23")]
2922 MemoryInfoGetDeviceMemType,
2923 #[cfg(feature = "api-23")]
2924 MemoryInfoGetVendorId,
2925 #[cfg(feature = "api-23")]
2926 ValueInfo_GetValueProducer,
2927 #[cfg(feature = "api-23")]
2928 ValueInfo_GetValueNumConsumers,
2929 #[cfg(feature = "api-23")]
2930 ValueInfo_GetValueConsumers,
2931 #[cfg(feature = "api-23")]
2932 ValueInfo_GetInitializerValue,
2933 #[cfg(feature = "api-23")]
2934 ValueInfo_GetExternalInitializerInfo,
2935 #[cfg(feature = "api-23")]
2936 ValueInfo_IsRequiredGraphInput,
2937 #[cfg(feature = "api-23")]
2938 ValueInfo_IsOptionalGraphInput,
2939 #[cfg(feature = "api-23")]
2940 ValueInfo_IsGraphOutput,
2941 #[cfg(feature = "api-23")]
2942 ValueInfo_IsConstantInitializer,
2943 #[cfg(feature = "api-23")]
2944 ValueInfo_IsFromOuterScope,
2945 #[cfg(feature = "api-23")]
2946 Graph_GetName,
2947 #[cfg(feature = "api-23")]
2948 Graph_GetModelPath,
2949 #[cfg(feature = "api-23")]
2950 Graph_GetOnnxIRVersion,
2951 #[cfg(feature = "api-23")]
2952 Graph_GetNumOperatorSets,
2953 #[cfg(feature = "api-23")]
2954 Graph_GetOperatorSets,
2955 #[cfg(feature = "api-23")]
2956 Graph_GetNumInputs,
2957 #[cfg(feature = "api-23")]
2958 Graph_GetInputs,
2959 #[cfg(feature = "api-23")]
2960 Graph_GetNumOutputs,
2961 #[cfg(feature = "api-23")]
2962 Graph_GetOutputs,
2963 #[cfg(feature = "api-23")]
2964 Graph_GetNumInitializers,
2965 #[cfg(feature = "api-23")]
2966 Graph_GetInitializers,
2967 #[cfg(feature = "api-23")]
2968 Graph_GetNumNodes,
2969 #[cfg(feature = "api-23")]
2970 Graph_GetNodes,
2971 #[cfg(feature = "api-23")]
2972 Graph_GetParentNode,
2973 #[cfg(feature = "api-23")]
2974 Graph_GetGraphView,
2975 #[cfg(feature = "api-23")]
2976 Node_GetId,
2977 #[cfg(feature = "api-23")]
2978 Node_GetName,
2979 #[cfg(feature = "api-23")]
2980 Node_GetOperatorType,
2981 #[cfg(feature = "api-23")]
2982 Node_GetDomain,
2983 #[cfg(feature = "api-23")]
2984 Node_GetSinceVersion,
2985 #[cfg(feature = "api-23")]
2986 Node_GetNumInputs,
2987 #[cfg(feature = "api-23")]
2988 Node_GetInputs,
2989 #[cfg(feature = "api-23")]
2990 Node_GetNumOutputs,
2991 #[cfg(feature = "api-23")]
2992 Node_GetOutputs,
2993 #[cfg(feature = "api-23")]
2994 Node_GetNumImplicitInputs,
2995 #[cfg(feature = "api-23")]
2996 Node_GetImplicitInputs,
2997 #[cfg(feature = "api-23")]
2998 Node_GetNumAttributes,
2999 #[cfg(feature = "api-23")]
3000 Node_GetAttributes,
3001 #[cfg(feature = "api-23")]
3002 Node_GetAttributeByName,
3003 #[cfg(feature = "api-23")]
3004 OpAttr_GetTensorAttributeAsOrtValue,
3005 #[cfg(feature = "api-23")]
3006 OpAttr_GetType,
3007 #[cfg(feature = "api-23")]
3008 OpAttr_GetName,
3009 #[cfg(feature = "api-23")]
3010 Node_GetNumSubgraphs,
3011 #[cfg(feature = "api-23")]
3012 Node_GetSubgraphs,
3013 #[cfg(feature = "api-23")]
3014 Node_GetGraph,
3015 #[cfg(feature = "api-23")]
3016 Node_GetEpName,
3017 #[cfg(feature = "api-23")]
3018 ReleaseExternalInitializerInfo,
3019 #[cfg(feature = "api-23")]
3020 ExternalInitializerInfo_GetFilePath,
3021 #[cfg(feature = "api-23")]
3022 ExternalInitializerInfo_GetFileOffset,
3023 #[cfg(feature = "api-23")]
3024 ExternalInitializerInfo_GetByteSize,
3025 #[cfg(feature = "api-23")]
3026 GetRunConfigEntry,
3027 #[cfg(feature = "api-23")]
3028 EpDevice_MemoryInfo,
3029 #[cfg(feature = "api-23")]
3030 CreateSharedAllocator,
3031 #[cfg(feature = "api-23")]
3032 GetSharedAllocator,
3033 #[cfg(feature = "api-23")]
3034 ReleaseSharedAllocator,
3035 #[cfg(feature = "api-23")]
3036 GetTensorData,
3037 #[cfg(feature = "api-23")]
3038 GetSessionOptionsConfigEntries,
3039 #[cfg(feature = "api-23")]
3040 SessionGetMemoryInfoForInputs,
3041 #[cfg(feature = "api-23")]
3042 SessionGetMemoryInfoForOutputs,
3043 #[cfg(feature = "api-23")]
3044 SessionGetEpDeviceForInputs,
3045 #[cfg(feature = "api-23")]
3046 CreateSyncStreamForEpDevice,
3047 #[cfg(feature = "api-23")]
3048 SyncStream_GetHandle,
3049 #[cfg(feature = "api-23")]
3050 ReleaseSyncStream,
3051 #[cfg(feature = "api-23")]
3052 CopyTensors,
3053 #[cfg(feature = "api-23")]
3054 Graph_GetModelMetadata,
3055 #[cfg(feature = "api-23")]
3056 GetModelCompatibilityForEpDevices,
3057 #[cfg(feature = "api-23")]
3058 CreateExternalInitializerInfo,
3059 #[cfg(feature = "api-24")]
3060 TensorTypeAndShape_HasShape,
3061 #[cfg(feature = "api-24")]
3062 KernelInfo_GetConfigEntries,
3063 #[cfg(feature = "api-24")]
3064 KernelInfo_GetOperatorDomain,
3065 #[cfg(feature = "api-24")]
3066 KernelInfo_GetOperatorType,
3067 #[cfg(feature = "api-24")]
3068 KernelInfo_GetOperatorSinceVersion,
3069 #[cfg(feature = "api-24")]
3070 GetInteropApi,
3071 #[cfg(feature = "api-24")]
3072 SessionGetEpDeviceForOutputs,
3073 #[cfg(feature = "api-24")]
3074 GetNumHardwareDevices,
3075 #[cfg(feature = "api-24")]
3076 GetHardwareDevices,
3077 #[cfg(feature = "api-24")]
3078 GetHardwareDeviceEpIncompatibilityDetails,
3079 #[cfg(feature = "api-24")]
3080 DeviceEpIncompatibilityDetails_GetReasonsBitmask,
3081 #[cfg(feature = "api-24")]
3082 DeviceEpIncompatibilityDetails_GetNotes,
3083 #[cfg(feature = "api-24")]
3084 DeviceEpIncompatibilityDetails_GetErrorCode,
3085 #[cfg(feature = "api-24")]
3086 ReleaseDeviceEpIncompatibilityDetails,
3087 #[cfg(feature = "api-24")]
3088 GetCompatibilityInfoFromModel,
3089 #[cfg(feature = "api-24")]
3090 GetCompatibilityInfoFromModelBytes,
3091 #[cfg(feature = "api-24")]
3092 CreateEnvWithOptions,
3093 #[cfg(feature = "api-24")]
3094 Session_GetEpGraphAssignmentInfo,
3095 #[cfg(feature = "api-24")]
3096 EpAssignedSubgraph_GetEpName,
3097 #[cfg(feature = "api-24")]
3098 EpAssignedSubgraph_GetNodes,
3099 #[cfg(feature = "api-24")]
3100 EpAssignedNode_GetName,
3101 #[cfg(feature = "api-24")]
3102 EpAssignedNode_GetDomain,
3103 #[cfg(feature = "api-24")]
3104 EpAssignedNode_GetOperatorType,
3105 #[cfg(feature = "api-24")]
3106 RunOptionsSetSyncStream,
3107 #[cfg(feature = "api-24")]
3108 GetTensorElementTypeAndShapeDataReference,
3109 #[cfg(feature = "api-25")]
3110 RunOptionsEnableProfiling,
3111 #[cfg(feature = "api-25")]
3112 RunOptionsDisableProfiling,
3113 #[cfg(feature = "api-25")]
3114 KernelInfoGetAttributeArray_string,
3115 #[cfg(feature = "api-25")]
3116 SetPerSessionThreadPoolCallbacks,
3117 #[cfg(feature = "api-27")]
3118 GetMemPatternEnabled,
3119 #[cfg(feature = "api-27")]
3120 GetSessionExecutionMode,
3121 #[cfg(feature = "api-27")]
3122 SessionReleaseCapturedGraph,
3123 #[cfg(feature = "api-28")]
3124 GetExperimentalFunction,
3125 #[cfg(feature = "api-28")]
3126 KernelContext_GetSyncStream
3127 }
3128}