IConvolutionLayer is an optional interface that marks a layer as a convolution layer.
More...
#include <nvneural/layers/IConvolutionLayer.h>
|
using | RefCount = std::uint32_t |
| Typedef used to track the number of active references to an object.
|
|
using | TypeId = std::uint64_t |
| Every interface must define a unique TypeId. This should be randomized.
|
|
virtual | ~IRefObject ()=default |
| A protected destructor prevents accidental stack-allocation of IRefObjects or use with other smart pointer classes like std::unique_ptr.
|
|
IConvolutionLayer is an optional interface that marks a layer as a convolution layer.
Networks may fuse convolution layers with batch normalization layers (represented by IBatchNormalizationLayer).
◆ applyBias()
virtual NeuralResult nvneural::IConvolutionLayer::applyBias |
( |
bool |
enableBias | ) |
|
|
pure virtualnoexcept |
Turns bias on or off.
- Parameters
-
enableBias | Whether bias should be applied. If false, bias is implicitly a zero tensor. |
◆ setFeatureCount()
virtual NeuralResult nvneural::IConvolutionLayer::setFeatureCount |
( |
std::size_t |
numFeatures | ) |
|
|
pure virtualnoexcept |
Sets the feature count of the convolution operation.
- Parameters
-
numFeatures | New feature count |
◆ setKernelSize()
virtual NeuralResult nvneural::IConvolutionLayer::setKernelSize |
( |
std::size_t |
kernelSizeW, |
|
|
std::size_t |
kernelSizeH |
|
) |
| |
|
pure virtualnoexcept |
Sets the kernel size of the convolution operation.
- Parameters
-
kernelSizeW | Kernel dimension in W |
kernelSizeH | Kernel dimension in H |
◆ setStride()
virtual NeuralResult nvneural::IConvolutionLayer::setStride |
( |
std::size_t |
strideW, |
|
|
std::size_t |
strideH |
|
) |
| |
|
pure virtualnoexcept |
Sets the stride of the convolution operation.
- Parameters
-
strideW | Stride dimension in W |
strideH | Stride dimension in H |
◆ setZeroPadding()
virtual NeuralResult nvneural::IConvolutionLayer::setZeroPadding |
( |
bool |
enablePadding | ) |
|
|
pure virtualnoexcept |
Turns zero padding on or off.
- Parameters
-
enablePadding | Whether zero padding should be applied |
The documentation for this class was generated from the following file: