MCPcopy Create free account
hub / github.com/NVIDIA/TensorRT / addConstant

Method addConstant

include/NvInfer.h:7471–7474  ·  view source on GitHub ↗

\brief Add a constant layer to the network. \param dimensions The dimensions of the constant. \param weights The constant value, represented as weights. \see IConstantLayer \return The new constant layer, or nullptr if it could not be created. If weights.type is DataType::kINT32, the output is a tensor of 32-bit indices. Otherwise the output is a tensor of real values and the output type will

Source from the content-addressed store, hash-verified

7469 //! \warning DataType::kUINT8 not supported.
7470 //!
7471 IConstantLayer* addConstant(Dims dimensions, Weights weights) noexcept
7472 {
7473 return mImpl->addConstant(dimensions, weights);
7474 }
7475
7476 //!
7477 //! \brief Add an \p layerCount deep RNN layer to the network with \p hiddenSize internal states that can

Callers 3

addLSTMLayersMethod · 0.80
constructNetworkMethod · 0.80
parsePReLUFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected