use core::ffi::*;
use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[unsafe(super(MLCLayer, NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "MLCLayer")]
#[deprecated]
pub struct MLCLayerNormalizationLayer;
);
#[cfg(feature = "MLCLayer")]
extern_conformance!(
unsafe impl NSObjectProtocol for MLCLayerNormalizationLayer {}
);
#[cfg(feature = "MLCLayer")]
impl MLCLayerNormalizationLayer {
extern_methods!(
#[deprecated]
#[unsafe(method(normalizedShape))]
#[unsafe(method_family = none)]
pub unsafe fn normalizedShape(&self) -> Retained<NSArray<NSNumber>>;
#[cfg(feature = "MLCTensor")]
#[deprecated]
#[unsafe(method(beta))]
#[unsafe(method_family = none)]
pub unsafe fn beta(&self) -> Option<Retained<MLCTensor>>;
#[cfg(feature = "MLCTensor")]
#[deprecated]
#[unsafe(method(gamma))]
#[unsafe(method_family = none)]
pub unsafe fn gamma(&self) -> Option<Retained<MLCTensor>>;
#[cfg(feature = "MLCTensorParameter")]
#[deprecated]
#[unsafe(method(betaParameter))]
#[unsafe(method_family = none)]
pub unsafe fn betaParameter(&self) -> Option<Retained<MLCTensorParameter>>;
#[cfg(feature = "MLCTensorParameter")]
#[deprecated]
#[unsafe(method(gammaParameter))]
#[unsafe(method_family = none)]
pub unsafe fn gammaParameter(&self) -> Option<Retained<MLCTensorParameter>>;
#[deprecated]
#[unsafe(method(varianceEpsilon))]
#[unsafe(method_family = none)]
pub unsafe fn varianceEpsilon(&self) -> c_float;
#[cfg(feature = "MLCTensor")]
#[deprecated]
#[unsafe(method(layerWithNormalizedShape:beta:gamma:varianceEpsilon:))]
#[unsafe(method_family = none)]
pub unsafe fn layerWithNormalizedShape_beta_gamma_varianceEpsilon(
normalized_shape: &NSArray<NSNumber>,
beta: Option<&MLCTensor>,
gamma: Option<&MLCTensor>,
variance_epsilon: c_float,
) -> Option<Retained<Self>>;
);
}
#[cfg(feature = "MLCLayer")]
impl MLCLayerNormalizationLayer {
extern_methods!(
#[deprecated]
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
#[deprecated]
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
);
}