pub struct PoolConfig {
pub kernel: PoolKernel,
pub kernel_size: usize,
pub stride: usize,
}Expand description
Configuration for spatial pooling applied after gather.
§Examples
use murk_obs::{PoolConfig, PoolKernel};
let pool = PoolConfig {
kernel: PoolKernel::Mean,
kernel_size: 3,
stride: 2,
};
assert_eq!(pool.kernel, PoolKernel::Mean);
assert_eq!(pool.kernel_size, 3);
assert_eq!(pool.stride, 2);Fields§
§kernel: PoolKernelPooling kernel type.
kernel_size: usizeWindow size (applies to all spatial dimensions).
stride: usizeStride between windows (applies to all spatial dimensions).
Trait Implementations§
Source§impl Clone for PoolConfig
impl Clone for PoolConfig
Source§fn clone(&self) -> PoolConfig
fn clone(&self) -> PoolConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PoolConfig
impl Debug for PoolConfig
Source§impl PartialEq for PoolConfig
impl PartialEq for PoolConfig
impl Eq for PoolConfig
impl StructuralPartialEq for PoolConfig
Auto Trait Implementations§
impl Freeze for PoolConfig
impl RefUnwindSafe for PoolConfig
impl Send for PoolConfig
impl Sync for PoolConfig
impl Unpin for PoolConfig
impl UnwindSafe for PoolConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.