26 #ifndef NVNERAL_IPOOLINGLAYER_H
27 #define NVNERAL_IPOOLINGLAYER_H
76 virtual
NeuralResult getPadding(std::
size_t* pStartW, std::
size_t* pStartH, std::
size_t* pEndW, std::
size_t* pEndH) const noexcept = 0;
Fundamental NvNeural data types are declared here.
@ Invalid
Invalid value used to guard against uninitialized variables.
NeuralResult
NeuralResult is a generic success/failure result type similar to COM HRESULT.
Definition: CoreTypes.h:275
PoolType
Enumeration describing pooling layer types.
Definition: IPoolingLayer.h:34
IPoolingLayer is an optional interface implemented by pooling layers.
Definition: IPoolingLayer.h:42
virtual NeuralResult setStartPadding(std::size_t startW, std::size_t startH) noexcept=0
Sets the start padding along the W and H axes.
virtual NeuralResult setPoolingType(PoolType poolType) noexcept=0
Sets the type of pooling operation.
static const IRefObject::TypeId typeID
Interface TypeId for InterfaceOf purposes.
Definition: IPoolingLayer.h:45
virtual NeuralResult setEndPadding(std::size_t endW, std::size_t endH) noexcept=0
Sets the end padding along the W and H axes.
virtual NeuralResult getKernelSize(std::size_t *pKernelW, std::size_t *pKernelH) const noexcept=0
Retrieves the kernel size for the W and H axes.
virtual NeuralResult setKernelSize(std::size_t kernelW, std::size_t kernelH) noexcept=0
Sets the kernel size for the W and H axes.
virtual NeuralResult getStride(std::size_t *pStrideW, std::size_t *pStrideH) const noexcept=0
Retrieves the operation stride for the W and H axes.
virtual PoolType poolingType() const noexcept=0
Returns the type of pooling operation performed by this layer.
virtual NeuralResult getPadding(std::size_t *pStartW, std::size_t *pStartH, std::size_t *pEndW, std::size_t *pEndH) const noexcept=0
Retrieves the start and end padding for the W and H axes.
virtual NeuralResult setStride(std::size_t strideW, std::size_t strideH) noexcept=0
Sets the operation stride for the W and H axes.
Base class for all objects, similar to COM's IUnknown.
Definition: CoreTypes.h:343
std::uint64_t TypeId
Every interface must define a unique TypeId. This should be randomized.
Definition: CoreTypes.h:349