pub struct MachineLearningPipelineDescriptor(/* private fields */);Expand description
Descriptor for creating a machine learning pipeline.
C++ equivalent: MTL4::MachineLearningPipelineDescriptor
Implementations§
Source§impl MachineLearningPipelineDescriptor
impl MachineLearningPipelineDescriptor
Sourcepub unsafe fn from_raw(ptr: *mut c_void) -> Option<Self>
pub unsafe fn from_raw(ptr: *mut c_void) -> Option<Self>
Create a MachineLearningPipelineDescriptor from a raw pointer.
Sourcepub fn set_label(&self, label: &str)
pub fn set_label(&self, label: &str)
Set the label.
C++ equivalent: void setLabel(const NS::String*)
Sourcepub fn machine_learning_function_descriptor(&self) -> Option<FunctionDescriptor>
pub fn machine_learning_function_descriptor(&self) -> Option<FunctionDescriptor>
Get the machine learning function descriptor.
C++ equivalent: FunctionDescriptor* machineLearningFunctionDescriptor() const
Sourcepub fn set_machine_learning_function_descriptor(
&self,
descriptor: &FunctionDescriptor,
)
pub fn set_machine_learning_function_descriptor( &self, descriptor: &FunctionDescriptor, )
Set the machine learning function descriptor.
C++ equivalent: void setMachineLearningFunctionDescriptor(const MTL4::FunctionDescriptor*)
Sourcepub fn input_dimensions_at_buffer_index_raw(
&self,
buffer_index: Integer,
) -> *mut c_void
pub fn input_dimensions_at_buffer_index_raw( &self, buffer_index: Integer, ) -> *mut c_void
Get input dimensions at buffer index (as raw pointer to TensorExtents).
C++ equivalent: MTL::TensorExtents* inputDimensionsAtBufferIndex(NS::Integer)
Sourcepub fn set_input_dimensions_raw(
&self,
dimensions: *const c_void,
buffer_index: Integer,
)
pub fn set_input_dimensions_raw( &self, dimensions: *const c_void, buffer_index: Integer, )
Set input dimensions at buffer index (from raw pointer to TensorExtents).
C++ equivalent: void setInputDimensions(const MTL::TensorExtents*, NS::Integer)