pub struct CnnConvolutionWeightsAndBiasesState { /* private fields */ }Expand description
Wraps MPSCNNConvolutionWeightsAndBiasesState.
Implementations§
Source§impl CnnConvolutionWeightsAndBiasesState
impl CnnConvolutionWeightsAndBiasesState
Sourcepub fn new_with_buffers(
weights: &MetalBuffer,
biases: Option<&MetalBuffer>,
) -> Option<Self>
pub fn new_with_buffers( weights: &MetalBuffer, biases: Option<&MetalBuffer>, ) -> Option<Self>
Wraps a constructor on MPSCNNConvolutionWeightsAndBiasesState.
Sourcepub fn new_with_offsets(
weights: &MetalBuffer,
weights_offset: usize,
biases: Option<&MetalBuffer>,
biases_offset: usize,
descriptor: &CnnConvolutionDescriptor,
) -> Option<Self>
pub fn new_with_offsets( weights: &MetalBuffer, weights_offset: usize, biases: Option<&MetalBuffer>, biases_offset: usize, descriptor: &CnnConvolutionDescriptor, ) -> Option<Self>
Wraps a constructor on MPSCNNConvolutionWeightsAndBiasesState.
Sourcepub fn new_with_device(
device: &MetalDevice,
descriptor: &CnnConvolutionDescriptor,
) -> Option<Self>
pub fn new_with_device( device: &MetalDevice, descriptor: &CnnConvolutionDescriptor, ) -> Option<Self>
Wraps a constructor on MPSCNNConvolutionWeightsAndBiasesState.
Sourcepub fn weights_offset(&self) -> usize
pub fn weights_offset(&self) -> usize
Wraps the corresponding MPSCNNConvolutionWeightsAndBiasesState method.
Sourcepub fn biases_offset(&self) -> usize
pub fn biases_offset(&self) -> usize
Wraps the corresponding MPSCNNConvolutionWeightsAndBiasesState method.
Trait Implementations§
impl Send for CnnConvolutionWeightsAndBiasesState
impl Sync for CnnConvolutionWeightsAndBiasesState
Auto Trait Implementations§
impl Freeze for CnnConvolutionWeightsAndBiasesState
impl RefUnwindSafe for CnnConvolutionWeightsAndBiasesState
impl Unpin for CnnConvolutionWeightsAndBiasesState
impl UnsafeUnpin for CnnConvolutionWeightsAndBiasesState
impl UnwindSafe for CnnConvolutionWeightsAndBiasesState
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