]>
Commit | Line | Data |
---|---|---|
04454e1e | 1 | #[doc = "*Required features: `\"AI_MachineLearning_Preview\"`, `\"deprecated\"`*"] |
5e7ed085 FG |
2 | #[cfg(feature = "deprecated")] |
3 | #[repr(transparent)] | |
4 | pub struct FeatureElementKindPreview(pub i32); | |
5 | #[cfg(feature = "deprecated")] | |
6 | impl FeatureElementKindPreview { | |
7 | pub const Undefined: Self = Self(0i32); | |
8 | pub const Float: Self = Self(1i32); | |
9 | pub const UInt8: Self = Self(2i32); | |
10 | pub const Int8: Self = Self(3i32); | |
11 | pub const UInt16: Self = Self(4i32); | |
12 | pub const Int16: Self = Self(5i32); | |
13 | pub const Int32: Self = Self(6i32); | |
14 | pub const Int64: Self = Self(7i32); | |
15 | pub const String: Self = Self(8i32); | |
16 | pub const Boolean: Self = Self(9i32); | |
17 | pub const Float16: Self = Self(10i32); | |
18 | pub const Double: Self = Self(11i32); | |
19 | pub const UInt32: Self = Self(12i32); | |
20 | pub const UInt64: Self = Self(13i32); | |
21 | pub const Complex64: Self = Self(14i32); | |
22 | pub const Complex128: Self = Self(15i32); | |
23 | } | |
24 | #[cfg(feature = "deprecated")] | |
25 | impl ::core::marker::Copy for FeatureElementKindPreview {} | |
26 | #[cfg(feature = "deprecated")] | |
27 | impl ::core::clone::Clone for FeatureElementKindPreview { | |
28 | fn clone(&self) -> Self { | |
29 | *self | |
30 | } | |
31 | } | |
32 | pub type ILearningModelVariableDescriptorPreview = *mut ::core::ffi::c_void; | |
33 | pub type ImageVariableDescriptorPreview = *mut ::core::ffi::c_void; | |
34 | pub type InferencingOptionsPreview = *mut ::core::ffi::c_void; | |
35 | pub type LearningModelBindingPreview = *mut ::core::ffi::c_void; | |
36 | pub type LearningModelDescriptionPreview = *mut ::core::ffi::c_void; | |
04454e1e | 37 | #[doc = "*Required features: `\"AI_MachineLearning_Preview\"`, `\"deprecated\"`*"] |
5e7ed085 FG |
38 | #[cfg(feature = "deprecated")] |
39 | #[repr(transparent)] | |
40 | pub struct LearningModelDeviceKindPreview(pub i32); | |
41 | #[cfg(feature = "deprecated")] | |
42 | impl LearningModelDeviceKindPreview { | |
43 | pub const LearningDeviceAny: Self = Self(0i32); | |
44 | pub const LearningDeviceCpu: Self = Self(1i32); | |
45 | pub const LearningDeviceGpu: Self = Self(2i32); | |
46 | pub const LearningDeviceNpu: Self = Self(3i32); | |
47 | pub const LearningDeviceDsp: Self = Self(4i32); | |
48 | pub const LearningDeviceFpga: Self = Self(5i32); | |
49 | } | |
50 | #[cfg(feature = "deprecated")] | |
51 | impl ::core::marker::Copy for LearningModelDeviceKindPreview {} | |
52 | #[cfg(feature = "deprecated")] | |
53 | impl ::core::clone::Clone for LearningModelDeviceKindPreview { | |
54 | fn clone(&self) -> Self { | |
55 | *self | |
56 | } | |
57 | } | |
58 | pub type LearningModelEvaluationResultPreview = *mut ::core::ffi::c_void; | |
04454e1e | 59 | #[doc = "*Required features: `\"AI_MachineLearning_Preview\"`, `\"deprecated\"`*"] |
5e7ed085 FG |
60 | #[cfg(feature = "deprecated")] |
61 | #[repr(transparent)] | |
62 | pub struct LearningModelFeatureKindPreview(pub i32); | |
63 | #[cfg(feature = "deprecated")] | |
64 | impl LearningModelFeatureKindPreview { | |
65 | pub const Undefined: Self = Self(0i32); | |
66 | pub const Tensor: Self = Self(1i32); | |
67 | pub const Sequence: Self = Self(2i32); | |
68 | pub const Map: Self = Self(3i32); | |
69 | pub const Image: Self = Self(4i32); | |
70 | } | |
71 | #[cfg(feature = "deprecated")] | |
72 | impl ::core::marker::Copy for LearningModelFeatureKindPreview {} | |
73 | #[cfg(feature = "deprecated")] | |
74 | impl ::core::clone::Clone for LearningModelFeatureKindPreview { | |
75 | fn clone(&self) -> Self { | |
76 | *self | |
77 | } | |
78 | } | |
79 | pub type LearningModelPreview = *mut ::core::ffi::c_void; | |
80 | pub type LearningModelVariableDescriptorPreview = *mut ::core::ffi::c_void; | |
81 | pub type MapVariableDescriptorPreview = *mut ::core::ffi::c_void; | |
82 | pub type SequenceVariableDescriptorPreview = *mut ::core::ffi::c_void; | |
83 | pub type TensorVariableDescriptorPreview = *mut ::core::ffi::c_void; |