26 #ifndef NVNEURAL_ICONVOLUTIONLAYER_H
27 #define NVNEURAL_ICONVOLUTIONLAYER_H
Fundamental NvNeural data types are declared here.
NeuralResult
NeuralResult is a generic success/failure result type similar to COM HRESULT.
Definition: CoreTypes.h:275
ConvolutionPaddingMode
Enum to describe convolution padding modes.
Definition: IConvolutionLayer.h:71
IConvolutionLayer2 is an optional interface that marks a layer as a convolution layer.
Definition: IConvolutionLayer.h:84
virtual ConvolutionPaddingMode getPaddingMode() const noexcept=0
Returns the currently set padding mode of the convolution operation.
IConvolutionLayer is an optional interface that marks a layer as a convolution layer.
Definition: IConvolutionLayer.h:38
virtual NeuralResult setKernelSize(std::size_t kernelSizeW, std::size_t kernelSizeH) noexcept=0
Sets the kernel size of the convolution operation.
virtual bool zeroPadding() const noexcept=0
Returns true if zero padding is enabled.
virtual NeuralResult setStride(std::size_t strideW, std::size_t strideH) noexcept=0
Sets the stride of the convolution operation.
virtual NeuralResult setFeatureCount(std::size_t numFeatures) noexcept=0
Sets the feature count of the convolution operation.
static const IRefObject::TypeId typeID
Interface TypeId for InterfaceOf purposes.
Definition: IConvolutionLayer.h:41
virtual NeuralResult applyBias(bool enableBias) noexcept=0
Turns bias on or off.
virtual NeuralResult setZeroPadding(bool enablePadding) noexcept=0
Turns zero padding on or off.
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
TensorDimension describes the dimensions of a four-dimensional image tensor.
Definition: CoreTypes.h:136