[][src]Struct opencv::dnn::PaddingLayer

pub struct PaddingLayer { /* fields omitted */ }

Adds extra values for specific axes.

Parameters

  • paddings: Vector of paddings in format

    This example is not tested
    [ pad_before, pad_after,  // [0]th dimension
                  pad_before, pad_after,  // [1]st dimension
                  ...
                  pad_before, pad_after ] // [n]th dimension

    that represents number of padded values at every dimension starting from the first one. The rest of dimensions won't be padded.

  • value: Value to be padded. Defaults to zero.

  • type: Padding type: 'constant', 'reflect'

  • input_dims: Torch's parameter. If @p input_dims is not equal to the actual input dimensionality then the [0]th dimension is considered as a batch dimension and @p paddings are shifted to a one dimension. Defaults to -1 that means padding corresponding to @p paddings.

Methods

impl PaddingLayer[src]

pub fn as_raw_PaddingLayer(&self) -> *mut c_void[src]

pub unsafe fn from_raw_ptr(ptr: *mut c_void) -> Self[src]

impl PaddingLayer[src]

Trait Implementations

impl AlgorithmTrait for PaddingLayer[src]

impl Drop for PaddingLayer[src]

impl LayerTrait for PaddingLayer[src]

impl Send for PaddingLayer[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> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[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.