|
| void | setInterleaved (bool interleaved) noexcept |
| | Set whether the input is in interleaved format, i.e., whether the 2-d vectors rotated are taken from adjacent 2 elements in the hidden dimension. The default value is false. More...
|
| |
| TRT_NODISCARD bool | getInterleaved () const noexcept |
| | Get whether the input is in interleaved format. The default value is false. More...
|
| |
| TRT_NODISCARD bool | setRotaryEmbeddingDim (int32_t rotaryEmbeddingDim) noexcept |
| | Set the number of hidden dimensions participating in RoPE. The default value is 0, representing H, i.e., all hidden dimensions in each head. Must be non-negative and even. More...
|
| |
| TRT_NODISCARD int32_t | getRotaryEmbeddingDim () const noexcept |
| | Get the number of hidden dimensions participating in RoPE. The default value is 0, representing H, i.e., all hidden dimensions in each head. More...
|
| |
| void | setInput (int32_t index, ITensor &tensor) noexcept |
| | Append or replace an input of this layer with a specific tensor. More...
|
| |
| LayerType | getType () const noexcept |
| | Return the type of a layer. More...
|
| |
| void | setName (char const *name) noexcept |
| | Set the name of a layer. More...
|
| |
| char const * | getName () const noexcept |
| | Return the name of a layer. More...
|
| |
| int32_t | getNbInputs () const noexcept |
| | Get the number of inputs of a layer. More...
|
| |
| ITensor * | getInput (int32_t index) const noexcept |
| | Get the layer input corresponding to the given index. More...
|
| |
| int32_t | getNbOutputs () const noexcept |
| | Get the number of outputs of a layer. More...
|
| |
| ITensor * | getOutput (int32_t index) const noexcept |
| | Get the layer output corresponding to the given index. More...
|
| |
| void | setInput (int32_t index, ITensor &tensor) noexcept |
| | Replace an input of this layer with a specific tensor. More...
|
| |
| TRT_DEPRECATED void | setPrecision (DataType dataType) noexcept |
| | Set the preferred or required computational precision of this layer in a weakly-typed network. More...
|
| |
| DataType | getPrecision () const noexcept |
| | get the computational precision of this layer More...
|
| |
| TRT_DEPRECATED bool | precisionIsSet () const noexcept |
| | whether the computational precision has been set for this layer More...
|
| |
| TRT_DEPRECATED void | resetPrecision () noexcept |
| | reset the computational precision for this layer More...
|
| |
| TRT_DEPRECATED void | setOutputType (int32_t index, DataType dataType) noexcept |
| | Set the output type of this layer in a weakly-typed network. More...
|
| |
| DataType | getOutputType (int32_t index) const noexcept |
| | get the output type of this layer More...
|
| |
| TRT_DEPRECATED bool | outputTypeIsSet (int32_t index) const noexcept |
| | whether the output type has been set for this layer More...
|
| |
| TRT_DEPRECATED void | resetOutputType (int32_t index) noexcept |
| | reset the output type for this layer More...
|
| |
| void | setMetadata (char const *metadata) noexcept |
| | Set the metadata for this layer. More...
|
| |
| char const * | getMetadata () const noexcept |
| | Get the metadata of the layer. More...
|
| |
Layer that implements Rotary Position Embedding (RoPE) (https://arxiv.org/abs/2104.09864).
- Warning
- Do not inherit from this class, as doing so will break forward-compatibility of the API and ABI.