pub struct MachineLearningPipelineState(/* private fields */);Expand description
A compiled machine learning pipeline state.
C++ equivalent: MTL4::MachineLearningPipelineState
Implementations§
Source§impl MachineLearningPipelineState
impl MachineLearningPipelineState
Sourcepub unsafe fn from_raw(ptr: *mut c_void) -> Option<Self>
pub unsafe fn from_raw(ptr: *mut c_void) -> Option<Self>
Create a MachineLearningPipelineState from a raw pointer.
Sourcepub fn device(&self) -> Option<Device>
pub fn device(&self) -> Option<Device>
Get the device.
C++ equivalent: MTL::Device* device() const
Sourcepub fn intermediates_heap_size(&self) -> UInteger
pub fn intermediates_heap_size(&self) -> UInteger
Get the intermediates heap size.
C++ equivalent: NS::UInteger intermediatesHeapSize() const
Sourcepub fn reflection(&self) -> Option<MachineLearningPipelineReflection>
pub fn reflection(&self) -> Option<MachineLearningPipelineReflection>
Get the pipeline reflection.
C++ equivalent: MachineLearningPipelineReflection* reflection() const
Trait Implementations§
Source§impl Clone for MachineLearningPipelineState
impl Clone for MachineLearningPipelineState
Source§impl Debug for MachineLearningPipelineState
impl Debug for MachineLearningPipelineState
Source§impl Drop for MachineLearningPipelineState
impl Drop for MachineLearningPipelineState
Source§impl Referencing for MachineLearningPipelineState
impl Referencing for MachineLearningPipelineState
Source§fn as_mut_ptr(&self) -> *mut c_void
fn as_mut_ptr(&self) -> *mut c_void
Get the raw mutable pointer to the Objective-C object.
Source§fn retain(&self) -> Selfwhere
Self: Clone,
fn retain(&self) -> Selfwhere
Self: Clone,
Retain the object, incrementing its reference count. Read more
Source§fn autorelease(&self) -> Selfwhere
Self: Clone,
fn autorelease(&self) -> Selfwhere
Self: Clone,
Autorelease the object. Read more
Source§fn retain_count(&self) -> usize
fn retain_count(&self) -> usize
Get the retain count of the object. Read more
impl Send for MachineLearningPipelineState
impl Sync for MachineLearningPipelineState
Auto Trait Implementations§
impl Freeze for MachineLearningPipelineState
impl RefUnwindSafe for MachineLearningPipelineState
impl Unpin for MachineLearningPipelineState
impl UnwindSafe for MachineLearningPipelineState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more