[][src]Struct tract_core::ops::cnn::pools::PoolSpec

pub struct PoolSpec {
    pub data_format: DataFormat,
    pub kernel_shape: TVec<usize>,
    pub padding: PaddingSpec,
    pub dilations: Option<TVec<usize>>,
    pub strides: Option<TVec<usize>>,
    pub output_channel_override: Option<usize>,
}

Fields

data_format: DataFormatkernel_shape: TVec<usize>padding: PaddingSpecdilations: Option<TVec<usize>>strides: Option<TVec<usize>>output_channel_override: Option<usize>

Methods

impl PoolSpec[src]

pub fn new(
    data_format: DataFormat,
    kernel_shape: TVec<usize>,
    padding: PaddingSpec,
    dilations: Option<TVec<usize>>,
    strides: Option<TVec<usize>>,
    output_channel_override: Option<usize>
) -> Self
[src]

Constructs a new PoolSpec.

impl PoolSpec[src]

pub fn info(&self) -> Vec<String>[src]

pub fn dilation(&self, geo_axis: usize) -> usize[src]

pub fn stride(&self, geo_axis: usize) -> usize[src]

pub fn compute_geo(
    &self,
    input_full_shape: &[usize]
) -> TractResult<(DataShape, Patch, DataShape)>
[src]

pub fn output_facts(
    &self,
    inputs: &[&TypedFact]
) -> TractResult<TVec<TypedFact>>
[src]

pub fn pulsify(
    &self,
    _source: &NormalizedModel,
    node: &NormalizedNode,
    op: &dyn PulsedOp,
    target: &mut PulsedModel,
    mapping: &HashMap<OutletId, OutletId>
) -> TractResult<TVec<OutletId>>
[src]

pub fn dispose_n_axis(&self) -> PoolSpec[src]

pub fn pulsed_output_facts(
    &self,
    inputs: &[&PulsedFact]
) -> TractResult<TVec<PulsedFact>>
[src]

Trait Implementations

impl Clone for PoolSpec[src]

impl Debug for PoolSpec[src]

impl Default for PoolSpec[src]

Auto Trait Implementations

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> Downcast for T where
    T: Any
[src]

impl<T> DowncastSync for T where
    T: Send + Sync + Any
[src]

impl<T> DynClone for T where
    T: Clone
[src]

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.