[][src]Struct neuro::layers::MaxPool2D

pub struct MaxPool2D { /* fields omitted */ }

Defines a 2D max pooling layer.

Methods

impl MaxPool2D[src]

pub fn new(pool_size: (u64, u64)) -> Box<MaxPool2D>[src]

Creates a 2D max pooling layer.

By default, the horizontal and vertical strides are set to the height and width of the pooling window.

Arguments

  • pool_size - The height and width of the pooling window.

pub fn with_param(pool_size: (u64, u64), stride: (u64, u64)) -> Box<MaxPool2D>[src]

Creates a 2D max pooling layer with the specified parameters.

Arguments

  • pool_size - The height and width of the moving window.
  • stride - The vertical and horizontal stride.

Trait Implementations

impl Display for MaxPool2D[src]

impl Layer for MaxPool2D[src]

Auto Trait Implementations

impl RefUnwindSafe for MaxPool2D

impl Send for MaxPool2D

impl Sync for MaxPool2D

impl Unpin for MaxPool2D

impl UnwindSafe for MaxPool2D

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> SetParameter for T

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,