]>
Commit | Line | Data |
---|---|---|
1 | #[cfg(feature = "AI_MachineLearning_Preview")] | |
2 | pub mod Preview; | |
3 | pub type ILearningModelFeatureDescriptor = *mut ::core::ffi::c_void; | |
4 | pub type ILearningModelFeatureValue = *mut ::core::ffi::c_void; | |
5 | pub type ILearningModelOperatorProvider = *mut ::core::ffi::c_void; | |
6 | pub type ITensor = *mut ::core::ffi::c_void; | |
7 | pub type ImageFeatureDescriptor = *mut ::core::ffi::c_void; | |
8 | pub type ImageFeatureValue = *mut ::core::ffi::c_void; | |
9 | pub type LearningModel = *mut ::core::ffi::c_void; | |
10 | pub type LearningModelBinding = *mut ::core::ffi::c_void; | |
11 | pub type LearningModelDevice = *mut ::core::ffi::c_void; | |
12 | #[doc = "*Required features: `\"AI_MachineLearning\"`*"] | |
13 | #[repr(transparent)] | |
14 | pub struct LearningModelDeviceKind(pub i32); | |
15 | impl LearningModelDeviceKind { | |
16 | pub const Default: Self = Self(0i32); | |
17 | pub const Cpu: Self = Self(1i32); | |
18 | pub const DirectX: Self = Self(2i32); | |
19 | pub const DirectXHighPerformance: Self = Self(3i32); | |
20 | pub const DirectXMinPower: Self = Self(4i32); | |
21 | } | |
22 | impl ::core::marker::Copy for LearningModelDeviceKind {} | |
23 | impl ::core::clone::Clone for LearningModelDeviceKind { | |
24 | fn clone(&self) -> Self { | |
25 | *self | |
26 | } | |
27 | } | |
28 | pub type LearningModelEvaluationResult = *mut ::core::ffi::c_void; | |
29 | #[doc = "*Required features: `\"AI_MachineLearning\"`*"] | |
30 | #[repr(transparent)] | |
31 | pub struct LearningModelFeatureKind(pub i32); | |
32 | impl LearningModelFeatureKind { | |
33 | pub const Tensor: Self = Self(0i32); | |
34 | pub const Sequence: Self = Self(1i32); | |
35 | pub const Map: Self = Self(2i32); | |
36 | pub const Image: Self = Self(3i32); | |
37 | } | |
38 | impl ::core::marker::Copy for LearningModelFeatureKind {} | |
39 | impl ::core::clone::Clone for LearningModelFeatureKind { | |
40 | fn clone(&self) -> Self { | |
41 | *self | |
42 | } | |
43 | } | |
44 | #[doc = "*Required features: `\"AI_MachineLearning\"`*"] | |
45 | #[repr(transparent)] | |
46 | pub struct LearningModelPixelRange(pub i32); | |
47 | impl LearningModelPixelRange { | |
48 | pub const ZeroTo255: Self = Self(0i32); | |
49 | pub const ZeroToOne: Self = Self(1i32); | |
50 | pub const MinusOneToOne: Self = Self(2i32); | |
51 | } | |
52 | impl ::core::marker::Copy for LearningModelPixelRange {} | |
53 | impl ::core::clone::Clone for LearningModelPixelRange { | |
54 | fn clone(&self) -> Self { | |
55 | *self | |
56 | } | |
57 | } | |
58 | pub type LearningModelSession = *mut ::core::ffi::c_void; | |
59 | pub type LearningModelSessionOptions = *mut ::core::ffi::c_void; | |
60 | pub type MapFeatureDescriptor = *mut ::core::ffi::c_void; | |
61 | pub type SequenceFeatureDescriptor = *mut ::core::ffi::c_void; | |
62 | pub type TensorBoolean = *mut ::core::ffi::c_void; | |
63 | pub type TensorDouble = *mut ::core::ffi::c_void; | |
64 | pub type TensorFeatureDescriptor = *mut ::core::ffi::c_void; | |
65 | pub type TensorFloat = *mut ::core::ffi::c_void; | |
66 | pub type TensorFloat16Bit = *mut ::core::ffi::c_void; | |
67 | pub type TensorInt16Bit = *mut ::core::ffi::c_void; | |
68 | pub type TensorInt32Bit = *mut ::core::ffi::c_void; | |
69 | pub type TensorInt64Bit = *mut ::core::ffi::c_void; | |
70 | pub type TensorInt8Bit = *mut ::core::ffi::c_void; | |
71 | #[doc = "*Required features: `\"AI_MachineLearning\"`*"] | |
72 | #[repr(transparent)] | |
73 | pub struct TensorKind(pub i32); | |
74 | impl TensorKind { | |
75 | pub const Undefined: Self = Self(0i32); | |
76 | pub const Float: Self = Self(1i32); | |
77 | pub const UInt8: Self = Self(2i32); | |
78 | pub const Int8: Self = Self(3i32); | |
79 | pub const UInt16: Self = Self(4i32); | |
80 | pub const Int16: Self = Self(5i32); | |
81 | pub const Int32: Self = Self(6i32); | |
82 | pub const Int64: Self = Self(7i32); | |
83 | pub const String: Self = Self(8i32); | |
84 | pub const Boolean: Self = Self(9i32); | |
85 | pub const Float16: Self = Self(10i32); | |
86 | pub const Double: Self = Self(11i32); | |
87 | pub const UInt32: Self = Self(12i32); | |
88 | pub const UInt64: Self = Self(13i32); | |
89 | pub const Complex64: Self = Self(14i32); | |
90 | pub const Complex128: Self = Self(15i32); | |
91 | } | |
92 | impl ::core::marker::Copy for TensorKind {} | |
93 | impl ::core::clone::Clone for TensorKind { | |
94 | fn clone(&self) -> Self { | |
95 | *self | |
96 | } | |
97 | } | |
98 | pub type TensorString = *mut ::core::ffi::c_void; | |
99 | pub type TensorUInt16Bit = *mut ::core::ffi::c_void; | |
100 | pub type TensorUInt32Bit = *mut ::core::ffi::c_void; | |
101 | pub type TensorUInt64Bit = *mut ::core::ffi::c_void; | |
102 | pub type TensorUInt8Bit = *mut ::core::ffi::c_void; |