objc2_ml_compute/generated/
MLCGroupNormalizationLayer.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6
7use crate::*;
8
9extern_class!(
10 #[unsafe(super(MLCLayer, NSObject))]
14 #[derive(Debug, PartialEq, Eq, Hash)]
15 #[cfg(feature = "MLCLayer")]
16 #[deprecated]
17 pub struct MLCGroupNormalizationLayer;
18);
19
20#[cfg(feature = "MLCLayer")]
21extern_conformance!(
22 unsafe impl NSObjectProtocol for MLCGroupNormalizationLayer {}
23);
24
25#[cfg(feature = "MLCLayer")]
26impl MLCGroupNormalizationLayer {
27 extern_methods!(
28 #[deprecated]
30 #[unsafe(method(featureChannelCount))]
31 #[unsafe(method_family = none)]
32 pub unsafe fn featureChannelCount(&self) -> NSUInteger;
33
34 #[deprecated]
36 #[unsafe(method(groupCount))]
37 #[unsafe(method_family = none)]
38 pub unsafe fn groupCount(&self) -> NSUInteger;
39
40 #[cfg(feature = "MLCTensor")]
41 #[deprecated]
43 #[unsafe(method(beta))]
44 #[unsafe(method_family = none)]
45 pub unsafe fn beta(&self) -> Option<Retained<MLCTensor>>;
46
47 #[cfg(feature = "MLCTensor")]
48 #[deprecated]
50 #[unsafe(method(gamma))]
51 #[unsafe(method_family = none)]
52 pub unsafe fn gamma(&self) -> Option<Retained<MLCTensor>>;
53
54 #[cfg(feature = "MLCTensorParameter")]
55 #[deprecated]
57 #[unsafe(method(betaParameter))]
58 #[unsafe(method_family = none)]
59 pub unsafe fn betaParameter(&self) -> Option<Retained<MLCTensorParameter>>;
60
61 #[cfg(feature = "MLCTensorParameter")]
62 #[deprecated]
64 #[unsafe(method(gammaParameter))]
65 #[unsafe(method_family = none)]
66 pub unsafe fn gammaParameter(&self) -> Option<Retained<MLCTensorParameter>>;
67
68 #[deprecated]
70 #[unsafe(method(varianceEpsilon))]
71 #[unsafe(method_family = none)]
72 pub unsafe fn varianceEpsilon(&self) -> c_float;
73
74 #[cfg(feature = "MLCTensor")]
75 #[deprecated]
89 #[unsafe(method(layerWithFeatureChannelCount:groupCount:beta:gamma:varianceEpsilon:))]
90 #[unsafe(method_family = none)]
91 pub unsafe fn layerWithFeatureChannelCount_groupCount_beta_gamma_varianceEpsilon(
92 feature_channel_count: NSUInteger,
93 group_count: NSUInteger,
94 beta: Option<&MLCTensor>,
95 gamma: Option<&MLCTensor>,
96 variance_epsilon: c_float,
97 ) -> Option<Retained<Self>>;
98 );
99}
100
101#[cfg(feature = "MLCLayer")]
103impl MLCGroupNormalizationLayer {
104 extern_methods!(
105 #[deprecated]
106 #[unsafe(method(new))]
107 #[unsafe(method_family = new)]
108 pub unsafe fn new() -> Retained<Self>;
109
110 #[deprecated]
111 #[unsafe(method(init))]
112 #[unsafe(method_family = init)]
113 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
114 );
115}