Struct rcudnn::utils::ConvolutionConfig
source · pub struct ConvolutionConfig { /* private fields */ }
Expand description
Provides a convenient interface to access cuDNN’s convolution parameters,
algo
and workspace
and workspace_size_in_bytes
.
You woudn’t use this struct yourself, but rather obtain it through Cudnn.init_convolution()
.
Implementations§
source§impl ConvolutionConfig
impl ConvolutionConfig
sourcepub fn new(
algo_fwd: cudnnConvolutionFwdAlgo_t,
workspace_size_fwd: usize,
algo_filter_bwd: cudnnConvolutionBwdFilterAlgo_t,
workspace_filter_size_bwd: usize,
algo_data_bwd: cudnnConvolutionBwdDataAlgo_t,
workspace_data_size_bwd: usize,
conv_desc: ConvolutionDescriptor,
filter_desc: FilterDescriptor
) -> ConvolutionConfig
pub fn new( algo_fwd: cudnnConvolutionFwdAlgo_t, workspace_size_fwd: usize, algo_filter_bwd: cudnnConvolutionBwdFilterAlgo_t, workspace_filter_size_bwd: usize, algo_data_bwd: cudnnConvolutionBwdDataAlgo_t, workspace_data_size_bwd: usize, conv_desc: ConvolutionDescriptor, filter_desc: FilterDescriptor ) -> ConvolutionConfig
Returns a new ConvolutionConfig
sourcepub fn largest_workspace_size(&self) -> usize
pub fn largest_workspace_size(&self) -> usize
Returns the largest workspace size out of the three.
Useful for creating a shared workspace.
sourcepub fn forward_algo(&self) -> &cudnnConvolutionFwdAlgo_t
pub fn forward_algo(&self) -> &cudnnConvolutionFwdAlgo_t
Returns forward_algo
.
sourcepub fn forward_workspace_size(&self) -> usize
pub fn forward_workspace_size(&self) -> usize
Returns forward_workspace_size
.
sourcepub fn backward_filter_algo(&self) -> &cudnnConvolutionBwdFilterAlgo_t
pub fn backward_filter_algo(&self) -> &cudnnConvolutionBwdFilterAlgo_t
Returns backward_filter_algo
.
sourcepub fn backward_filter_workspace_size(&self) -> usize
pub fn backward_filter_workspace_size(&self) -> usize
Returns backward_filter_workspace_size
.
sourcepub fn backward_data_algo(&self) -> &cudnnConvolutionBwdDataAlgo_t
pub fn backward_data_algo(&self) -> &cudnnConvolutionBwdDataAlgo_t
Returns backward_data_algo
.
sourcepub fn backward_data_workspace_size(&self) -> usize
pub fn backward_data_workspace_size(&self) -> usize
Returns backward_data_workspace_size
.
sourcepub fn conv_desc(&self) -> &ConvolutionDescriptor
pub fn conv_desc(&self) -> &ConvolutionDescriptor
Returns conv_desc
.
sourcepub fn filter_desc(&self) -> &FilterDescriptor
pub fn filter_desc(&self) -> &FilterDescriptor
Returns filter_desc
.
Auto Trait Implementations§
impl RefUnwindSafe for ConvolutionConfig
impl !Send for ConvolutionConfig
impl !Sync for ConvolutionConfig
impl Unpin for ConvolutionConfig
impl UnwindSafe for ConvolutionConfig
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