pub struct IPaddingLayer { /* private fields */ }Expand description
! ! \class IPaddingLayer ! ! \brief Layer that represents a padding operation. ! ! The padding layer adds zero-padding at the start and end of the input tensor. It supports padding ! only the last two dimensions. Applying negative padding results in cropping of the input. ! ! To pad across any subset of dimensions, use ISliceLayer with SampleMode::kFILL. ! ! \warning Do not inherit from this class, as doing so will break forward-compatibility of the API and ABI. !
Implementations§
Source§impl IPaddingLayer
impl IPaddingLayer
Sourcepub fn setPrePaddingNd(self: Pin<&mut IPaddingLayer>, padding: &Dims64)
pub fn setPrePaddingNd(self: Pin<&mut IPaddingLayer>, padding: &Dims64)
! ! \brief Set the padding that is applied at the start of the tensor. ! ! Negative padding results in trimming the edge by the specified amount. ! ! \warning Only 2 dimensional padding is currently supported. ! ! \see getPrePaddingNd !
Sourcepub fn getPrePaddingNd(self: &IPaddingLayer) -> Dims64
pub fn getPrePaddingNd(self: &IPaddingLayer) -> Dims64
! ! \brief Get the padding that is applied at the start of the tensor. ! ! \warning Only 2 dimensional padding is currently supported. ! ! \see setPrePaddingNd !
Sourcepub fn setPostPaddingNd(self: Pin<&mut IPaddingLayer>, padding: &Dims64)
pub fn setPostPaddingNd(self: Pin<&mut IPaddingLayer>, padding: &Dims64)
! ! \brief Set the padding that is applied at the end of the tensor. ! ! Negative padding results in trimming the edge by the specified amount ! ! \warning Only 2 dimensional padding is currently supported. ! ! \see getPostPaddingNd !
Sourcepub fn getPostPaddingNd(self: &IPaddingLayer) -> Dims64
pub fn getPostPaddingNd(self: &IPaddingLayer) -> Dims64
! ! \brief Get the padding that is applied at the end of the tensor. ! ! \warning Only 2 dimensional padding is currently supported. ! ! \see setPostPaddingNd !