objc2_ml_compute/generated/
MLCTensorParameter.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10extern_class!(
11 #[unsafe(super(NSObject))]
15 #[derive(Debug, PartialEq, Eq, Hash)]
16 #[deprecated]
17 pub struct MLCTensorParameter;
18);
19
20extern_conformance!(
21 unsafe impl NSObjectProtocol for MLCTensorParameter {}
22);
23
24impl MLCTensorParameter {
25 extern_methods!(
26 #[cfg(feature = "MLCTensor")]
27 #[deprecated]
29 #[unsafe(method(tensor))]
30 #[unsafe(method_family = none)]
31 pub unsafe fn tensor(&self) -> Retained<MLCTensor>;
32
33 #[deprecated]
35 #[unsafe(method(isUpdatable))]
36 #[unsafe(method_family = none)]
37 pub unsafe fn isUpdatable(&self) -> bool;
38
39 #[deprecated]
41 #[unsafe(method(setIsUpdatable:))]
42 #[unsafe(method_family = none)]
43 pub unsafe fn setIsUpdatable(&self, is_updatable: bool);
44
45 #[deprecated]
46 #[unsafe(method(new))]
47 #[unsafe(method_family = new)]
48 pub unsafe fn new() -> Retained<Self>;
49
50 #[deprecated]
51 #[unsafe(method(init))]
52 #[unsafe(method_family = init)]
53 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
54
55 #[cfg(feature = "MLCTensor")]
56 #[deprecated]
62 #[unsafe(method(parameterWithTensor:))]
63 #[unsafe(method_family = none)]
64 pub unsafe fn parameterWithTensor(tensor: &MLCTensor) -> Retained<Self>;
65
66 #[cfg(all(feature = "MLCTensor", feature = "MLCTensorData"))]
67 #[deprecated]
75 #[unsafe(method(parameterWithTensor:optimizerData:))]
76 #[unsafe(method_family = none)]
77 pub unsafe fn parameterWithTensor_optimizerData(
78 tensor: &MLCTensor,
79 optimizer_data: Option<&NSArray<MLCTensorData>>,
80 ) -> Retained<Self>;
81 );
82}