use core::ffi::*;
use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[unsafe(super(NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
#[deprecated]
pub struct MLCTensorParameter;
);
extern_conformance!(
unsafe impl NSObjectProtocol for MLCTensorParameter {}
);
impl MLCTensorParameter {
extern_methods!(
#[cfg(feature = "MLCTensor")]
#[deprecated]
#[unsafe(method(tensor))]
#[unsafe(method_family = none)]
pub unsafe fn tensor(&self) -> Retained<MLCTensor>;
#[deprecated]
#[unsafe(method(isUpdatable))]
#[unsafe(method_family = none)]
pub unsafe fn isUpdatable(&self) -> bool;
#[deprecated]
#[unsafe(method(setIsUpdatable:))]
#[unsafe(method_family = none)]
pub unsafe fn setIsUpdatable(&self, is_updatable: bool);
#[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>;
#[cfg(feature = "MLCTensor")]
#[deprecated]
#[unsafe(method(parameterWithTensor:))]
#[unsafe(method_family = none)]
pub unsafe fn parameterWithTensor(tensor: &MLCTensor) -> Retained<Self>;
#[cfg(all(feature = "MLCTensor", feature = "MLCTensorData"))]
#[deprecated]
#[unsafe(method(parameterWithTensor:optimizerData:))]
#[unsafe(method_family = none)]
pub unsafe fn parameterWithTensor_optimizerData(
tensor: &MLCTensor,
optimizer_data: Option<&NSArray<MLCTensorData>>,
) -> Retained<Self>;
);
}