Struct rcudnn::utils::PoolingConfig
source · pub struct PoolingConfig { /* private fields */ }
Expand description
Provides a convenient interface to access cuDNN’s Pooling Descriptor.
You woudn’t use this struct yourself, but rather obtain it through Cudnn.init_pooling()
.
Implementations§
source§impl PoolingConfig
impl PoolingConfig
sourcepub fn new(
pooling_avg_desc: PoolingDescriptor,
pooling_max_desc: PoolingDescriptor
) -> PoolingConfig
pub fn new( pooling_avg_desc: PoolingDescriptor, pooling_max_desc: PoolingDescriptor ) -> PoolingConfig
Returns a new PoolingConfig.
sourcepub fn pooling_avg_desc(&self) -> &PoolingDescriptor
pub fn pooling_avg_desc(&self) -> &PoolingDescriptor
Returns pooling_avg_desc
.
sourcepub fn pooling_max_desc(&self) -> &PoolingDescriptor
pub fn pooling_max_desc(&self) -> &PoolingDescriptor
Returns pooling_max_desc
.
Auto Trait Implementations§
impl RefUnwindSafe for PoolingConfig
impl !Send for PoolingConfig
impl !Sync for PoolingConfig
impl Unpin for PoolingConfig
impl UnwindSafe for PoolingConfig
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