|
void | setPoolingType (PoolingType type) noexcept |
| 设置要执行的激活类型。 更多...
|
|
PoolingType | getPoolingType () const noexcept |
| 获取要执行的激活类型。 更多...
|
|
void | setBlendFactor (float blendFactor) noexcept |
| 设置 max_average_blend 模式的混合因子:max_average_blendPool = (1-blendFactor)*maxPool + blendFactor*avgPool。blendFactor 是 [0,1] 范围内的用户值,默认值为 0.0。此值仅适用于 kMAX_AVERAGE_BLEND 模式。 更多...
|
|
float | getBlendFactor () const noexcept |
| 获取 max_average_blend 模式的混合因子:max_average_blendPool = (1-blendFactor)*maxPool + blendFactor*avgPool。blendFactor 是 [0,1] 范围内的用户值,默认值为 0.0。在 kMAX_AVERAGE_BLEND 以外的模式中,blendFactor 将被忽略。 更多...
|
|
void | setAverageCountExcludesPadding (bool exclusive) noexcept |
| 设置平均池化是否使用窗口和未填充输入之间的重叠区域作为分母。如果未设置,则分母是池化窗口和填充输入之间的重叠区域。 更多...
|
|
bool | getAverageCountExcludesPadding () const noexcept |
| 获取平均池化是否使用窗口和未填充输入之间的重叠区域作为分母。 更多...
|
|
void | setPrePadding (Dims const &padding) noexcept |
| 设置池化的多维前填充。 更多...
|
|
Dims | getPrePadding () const noexcept |
| 获取前填充。 更多...
|
|
void | setPostPadding (Dims const &padding) noexcept |
| 设置池化的多维后填充。 更多...
|
|
Dims | getPostPadding () const noexcept |
| 获取后填充。 更多...
|
|
void | setPaddingMode (PaddingMode paddingMode) noexcept |
| 设置填充模式。 更多...
|
|
PaddingMode | getPaddingMode () const noexcept |
| 获取填充模式。 更多...
|
|
void | setWindowSizeNd (Dims const &windowSize) noexcept |
| 设置池化的多维窗口大小。 更多...
|
|
Dims | getWindowSizeNd () const noexcept |
| 获取池化的多维窗口大小。 更多...
|
|
void | setStrideNd (Dims const &stride) noexcept |
| 设置池化的多维步长。 更多...
|
|
Dims | getStrideNd () const noexcept |
| 获取池化的多维步长。 更多...
|
|
void | setPaddingNd (Dims const &padding) noexcept |
| 设置池化的多维填充。 更多...
|
|
Dims | getPaddingNd () const noexcept |
| 获取池化的多维填充。 更多...
|
|
LayerType | getType () const noexcept |
| 返回层的类型。 更多...
|
|
void | setName (char const *name) noexcept |
| 设置层的名称。 更多...
|
|
char const * | getName () const noexcept |
| 返回层的名称。 更多...
|
|
int32_t | getNbInputs () const noexcept |
| 获取层的输入数量。 更多...
|
|
ITensor * | getInput (int32_t index) const noexcept |
| 获取与给定索引对应的层输入。 更多...
|
|
int32_t | getNbOutputs () const noexcept |
| 获取层的输出数量。 更多...
|
|
ITensor * | getOutput (int32_t index) const noexcept |
| 获取与给定索引对应的层输出。 更多...
|
|
void | setInput (int32_t index, ITensor &tensor) noexcept |
| 用特定张量替换此层的输入。 更多...
|
|
void | setPrecision (DataType dataType) noexcept |
| 在弱类型网络中设置此层的首选或必需的计算精度。 更多...
|
|
DataType | getPrecision () const noexcept |
| 获取此层的计算精度 更多...
|
|
bool | precisionIsSet () const noexcept |
| 是否已为此层设置计算精度 更多...
|
|
void | resetPrecision () noexcept |
| 重置此层的计算精度 更多...
|
|
void | setOutputType (int32_t index, DataType dataType) noexcept |
| 在弱类型网络中设置此层的输出类型。 更多...
|
|
DataType | getOutputType (int32_t index) const noexcept |
| 获取此层的输出类型 更多...
|
|
bool | outputTypeIsSet (int32_t index) const noexcept |
| 是否已为此层设置输出类型 更多...
|
|
void | resetOutputType (int32_t index) noexcept |
| 重置此层的输出类型 更多...
|
|
void | setMetadata (char const *metadata) noexcept |
| 为此层设置元数据。 更多...
|
|
char const * | getMetadata () const noexcept |
| 获取层的元数据。 更多...
|
|