objc2_ml_compute/generated/
MLCConcatenationLayer.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5
6use crate::*;
7
8extern_class!(
9    /// A concatenation layer
10    ///
11    /// See also [Apple's documentation](https://developer.apple.com/documentation/mlcompute/mlcconcatenationlayer?language=objc)
12    #[unsafe(super(MLCLayer, NSObject))]
13    #[derive(Debug, PartialEq, Eq, Hash)]
14    #[cfg(feature = "MLCLayer")]
15    #[deprecated]
16    pub struct MLCConcatenationLayer;
17);
18
19#[cfg(feature = "MLCLayer")]
20extern_conformance!(
21    unsafe impl NSObjectProtocol for MLCConcatenationLayer {}
22);
23
24#[cfg(feature = "MLCLayer")]
25impl MLCConcatenationLayer {
26    extern_methods!(
27        /// The dimension (or axis) along which to concatenate tensors
28        ///
29        /// The default value is 1 (which typically represents features channels)
30        #[deprecated]
31        #[unsafe(method(dimension))]
32        #[unsafe(method_family = none)]
33        pub unsafe fn dimension(&self) -> NSUInteger;
34
35        /// Create a concatenation layer
36        ///
37        /// Returns: A new concatenation layer
38        #[deprecated]
39        #[unsafe(method(layer))]
40        #[unsafe(method_family = none)]
41        pub unsafe fn layer() -> Retained<Self>;
42
43        /// Create a concatenation layer
44        ///
45        /// Parameter `dimension`: The concatenation dimension
46        ///
47        /// Returns: A new concatenation layer
48        #[deprecated]
49        #[unsafe(method(layerWithDimension:))]
50        #[unsafe(method_family = none)]
51        pub unsafe fn layerWithDimension(dimension: NSUInteger) -> Retained<Self>;
52    );
53}
54
55/// Methods declared on superclass `MLCLayer`.
56#[cfg(feature = "MLCLayer")]
57impl MLCConcatenationLayer {
58    extern_methods!(
59        #[deprecated]
60        #[unsafe(method(new))]
61        #[unsafe(method_family = new)]
62        pub unsafe fn new() -> Retained<Self>;
63
64        #[deprecated]
65        #[unsafe(method(init))]
66        #[unsafe(method_family = init)]
67        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
68    );
69}