|
TensorRT 10.8.0
|
网络定义中的逐元素层。 更多...
#include <NvInfer.h>
公共成员函数 | |
| void | setOperation (ElementWiseOperation op) noexcept |
| 设置层的二元运算。 更多... | |
| ElementWiseOperation | getOperation () const noexcept |
| 获取层的二元运算。 更多... | |
继承自 nvinfer1::ILayer 的公共成员函数 | |
| 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 |
| 获取层的元数据。 更多... | |
受保护成员函数 | |
| virtual | ~IElementWiseLayer () noexcept=default |
继承自 nvinfer1::ILayer 的受保护成员函数 | |
| virtual | ~ILayer () noexcept=default |
继承自 nvinfer1::INoCopy 的受保护成员函数 | |
| INoCopy ()=default | |
| virtual | ~INoCopy ()=default |
| INoCopy (INoCopy const &other)=delete | |
| INoCopy & | operator= (INoCopy const &other)=delete |
| INoCopy (INoCopy &&other)=delete | |
| INoCopy & | operator= (INoCopy &&other)=delete |
受保护属性 | |
| apiv::VElementWiseLayer * | mImpl |
继承自 nvinfer1::ILayer 的受保护属性 | |
| apiv::VLayer * | mLayer |
网络定义中的逐元素层。
此层在两个张量的对应元素之间应用逐元素的二元运算。
输入张量必须具有相同的秩。对于每个维度,它们的长度必须匹配,或者其中一个的长度必须为 1。在后一种情况下,张量会沿该轴广播。
输出张量与输入张量具有相同的秩。对于每个输出维度,如果对应的输入维度长度匹配,则其长度等于输入维度的长度;否则,其长度等于不为 1 的长度。
|
protectedvirtualdefaultnoexcept |
|
inlinenoexcept |
获取层的二元运算。
|
inlinenoexcept |
设置层的二元运算。
DLA 仅支持 kSUM、kPROD、kMAX、kMIN 和 kSUB。
|
protected |
Copyright © 2024 NVIDIA Corporation
隐私政策 | 管理我的隐私 | 请勿出售或分享我的数据 | 服务条款 | 辅助功能 | 公司政策 | 产品安全 | 联系我们