@Namespace(value="nvinfer1") @NoOffset @Properties(inherit=nvinfer.class) public class IPoolingLayer extends ILayer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
IPoolingLayer(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
getAverageCountExcludesPadding()
\brief Get whether average pooling uses as a denominator the overlap area between the window
and the unpadded input.
|
float |
getBlendFactor()
\brief Get the blending factor for the max_average_blend mode:
max_average_blendPool = (1-blendFactor)*maxPool + blendFactor*avgPool
blendFactor is a user value in [0,1] with the default value of 0.0
In modes other than kMAX_AVERAGE_BLEND, blendFactor is ignored.
|
DimsHW |
getPadding()
Deprecated.
Superseded by getPaddingNd. Deprecated prior to TensorRT 8.0 and will be removed in 9.0
|
nvinfer.PaddingMode |
getPaddingMode()
\brief Get the padding mode.
|
Dims32 |
getPaddingNd()
\brief Get the multi-dimension padding for pooling.
|
nvinfer.PoolingType |
getPoolingType()
\brief Get the type of activation to be performed.
|
Dims32 |
getPostPadding()
\brief Get the padding.
|
Dims32 |
getPrePadding()
\brief Get the pre-padding.
|
DimsHW |
getStride()
Deprecated.
Superseded by getStrideNd. Deprecated prior to TensorRT 8.0 and will be removed in 9.0
|
Dims32 |
getStrideNd()
\brief Get the multi-dimension stride for pooling.
|
DimsHW |
getWindowSize()
Deprecated.
Superseded by getWindowSizeNd. Deprecated prior to TensorRT 8.0 and will be removed in 9.0
|
Dims32 |
getWindowSizeNd()
\brief Get the multi-dimension window size for pooling.
|
void |
setAverageCountExcludesPadding(boolean exclusive)
\brief Set whether average pooling uses as a denominator the overlap area between the window
and the unpadded input.
|
void |
setBlendFactor(float blendFactor)
\brief Set the blending factor for the max_average_blend mode:
max_average_blendPool = (1-blendFactor)*maxPool + blendFactor*avgPool
blendFactor is a user value in [0,1] with the default value of 0.0
This value only applies for the kMAX_AVERAGE_BLEND mode.
|
void |
setPadding(DimsHW padding)
Deprecated.
Superseded by setPaddingNd. Deprecated prior to TensorRT 8.0 and will be removed in 9.0
|
void |
setPaddingMode(int paddingMode) |
void |
setPaddingMode(nvinfer.PaddingMode paddingMode)
\brief Set the padding mode.
|
void |
setPaddingNd(Dims32 padding)
\brief Set the multi-dimension padding for pooling.
|
void |
setPoolingType(int type) |
void |
setPoolingType(nvinfer.PoolingType type)
\brief Set the type of activation to be performed.
|
void |
setPostPadding(Dims32 padding)
\brief Set the multi-dimension post-padding for pooling.
|
void |
setPrePadding(Dims32 padding)
\brief Set the multi-dimension pre-padding for pooling.
|
void |
setStride(DimsHW stride)
Deprecated.
Superseded by setStrideNd. Deprecated prior to TensorRT 8.0 and will be removed in 9.0
|
void |
setStrideNd(Dims32 stride)
\brief Set the multi-dimension stride for pooling.
|
void |
setWindowSize(DimsHW windowSize)
Deprecated.
Superseded by setWindowSizeNd. Deprecated prior to TensorRT 8.0 and will be removed in 9.0
|
void |
setWindowSizeNd(Dims32 windowSize)
\brief Set the multi-dimension window size for pooling.
|
getInput, getMetadata, getName, getNbInputs, getNbOutputs, getOutput, getOutputType, getPrecision, getType, outputTypeIsSet, precisionIsSet, resetOutputType, resetPrecision, setInput, setMetadata, setMetadata, setName, setName, setOutputType, setOutputType, setPrecision, setPrecision
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public IPoolingLayer(Pointer p)
Pointer(Pointer)
.@NoException(value=true) public void setPoolingType(nvinfer.PoolingType type)
getPoolingType(), PoolingType
@NoException(value=true) public void setPoolingType(@Cast(value="nvinfer1::PoolingType") int type)
@NoException(value=true) public nvinfer.PoolingType getPoolingType()
setPoolingType(), PoolingType
@Deprecated @NoException(value=true) public void setWindowSize(@ByVal DimsHW windowSize)
getWindowSize()
@Deprecated @ByVal @NoException(value=true) public DimsHW getWindowSize()
setWindowSize()
@Deprecated @NoException(value=true) public void setStride(@ByVal DimsHW stride)
getStride()
@Deprecated @ByVal @NoException(value=true) public DimsHW getStride()
setStride()
@Deprecated @NoException(value=true) public void setPadding(@ByVal DimsHW padding)
getPadding()
@Deprecated @ByVal @NoException(value=true) public DimsHW getPadding()
setPadding()
@NoException(value=true) public void setBlendFactor(float blendFactor)
getBlendFactor()
@NoException(value=true) public float getBlendFactor()
setBlendFactor()
@NoException(value=true) public void setAverageCountExcludesPadding(@Cast(value="bool") boolean exclusive)
getAverageCountExcludesPadding()
@Cast(value="bool") @NoException(value=true) public boolean getAverageCountExcludesPadding()
setAverageCountExcludesPadding()
@NoException(value=true) public void setPrePadding(@ByVal @Cast(value="nvinfer1::Dims*") Dims32 padding)
getPrePadding()
@ByVal @Cast(value="nvinfer1::Dims*") @NoException(value=true) public Dims32 getPrePadding()
setPrePadding()
@NoException(value=true) public void setPostPadding(@ByVal @Cast(value="nvinfer1::Dims*") Dims32 padding)
getPostPadding()
@ByVal @Cast(value="nvinfer1::Dims*") @NoException(value=true) public Dims32 getPostPadding()
setPostPadding()
@NoException(value=true) public void setPaddingMode(nvinfer.PaddingMode paddingMode)
getPaddingMode()
@NoException(value=true) public void setPaddingMode(@Cast(value="nvinfer1::PaddingMode") int paddingMode)
@NoException(value=true) public nvinfer.PaddingMode getPaddingMode()
setPaddingMode()
@NoException(value=true) public void setWindowSizeNd(@ByVal @Cast(value="nvinfer1::Dims*") Dims32 windowSize)
setWindowSize() getWindowSize()
@ByVal @Cast(value="nvinfer1::Dims*") @NoException(value=true) public Dims32 getWindowSizeNd()
setWindowSizeNd()
@NoException(value=true) public void setStrideNd(@ByVal @Cast(value="nvinfer1::Dims*") Dims32 stride)
setStride() getStride()
@ByVal @Cast(value="nvinfer1::Dims*") @NoException(value=true) public Dims32 getStrideNd()
setStrideNd()
@NoException(value=true) public void setPaddingNd(@ByVal @Cast(value="nvinfer1::Dims*") Dims32 padding)
setPadding() getPadding()
Copyright © 2024. All rights reserved.