pub struct RnnDescriptor { /* private fields */ }Expand description
Wraps MPSRNNDescriptor.
Implementations§
Source§impl RnnDescriptor
impl RnnDescriptor
Source§impl RnnDescriptor
impl RnnDescriptor
Sourcepub fn input_feature_channels(&self) -> usize
pub fn input_feature_channels(&self) -> usize
Wraps the corresponding Metal Performance Shaders method.
Sourcepub fn set_input_feature_channels(&self, value: usize)
pub fn set_input_feature_channels(&self, value: usize)
Wraps the corresponding Metal Performance Shaders method.
Sourcepub fn output_feature_channels(&self) -> usize
pub fn output_feature_channels(&self) -> usize
Wraps the corresponding Metal Performance Shaders method.
Sourcepub fn set_output_feature_channels(&self, value: usize)
pub fn set_output_feature_channels(&self, value: usize)
Wraps the corresponding Metal Performance Shaders method.
Sourcepub fn use_layer_input_unit_transform_mode(&self) -> bool
pub fn use_layer_input_unit_transform_mode(&self) -> bool
Wraps the corresponding Metal Performance Shaders method.
Sourcepub fn set_use_layer_input_unit_transform_mode(&self, value: bool)
pub fn set_use_layer_input_unit_transform_mode(&self, value: bool)
Wraps the corresponding Metal Performance Shaders method.
Sourcepub fn use_float32_weights(&self) -> bool
pub fn use_float32_weights(&self) -> bool
Wraps the corresponding Metal Performance Shaders method.
Sourcepub fn set_use_float32_weights(&self, value: bool)
pub fn set_use_float32_weights(&self, value: bool)
Wraps the corresponding Metal Performance Shaders method.
Sourcepub fn layer_sequence_direction(&self) -> usize
pub fn layer_sequence_direction(&self) -> usize
Wraps the corresponding Metal Performance Shaders method.
Sourcepub fn set_layer_sequence_direction(&self, value: usize)
pub fn set_layer_sequence_direction(&self, value: usize)
Wraps the corresponding Metal Performance Shaders method.
Trait Implementations§
Source§impl Drop for RnnDescriptor
impl Drop for RnnDescriptor
impl Send for RnnDescriptor
impl Sync for RnnDescriptor
Auto Trait Implementations§
impl Freeze for RnnDescriptor
impl RefUnwindSafe for RnnDescriptor
impl Unpin for RnnDescriptor
impl UnsafeUnpin for RnnDescriptor
impl UnwindSafe for RnnDescriptor
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