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

Method addScale

include/NvInfer.h:7049–7052  ·  view source on GitHub ↗

\brief Add a Scale layer to the network. \param input The input tensor to the layer. This tensor is required to have a minimum of 3 dimensions in implicit batch mode and a minimum of 4 dimensions in explicit batch mode. \param mode The scaling mode. \param shift The shift value. \param scale The scale value. \param power The power value. If the weights are available, then the size of weights are

Source from the content-addressed store, hash-verified

7047 //! \return The new Scale layer, or nullptr if it could not be created.
7048 //!
7049 IScaleLayer* addScale(ITensor& input, ScaleMode mode, Weights shift, Weights scale, Weights power) noexcept
7050 {
7051 return mImpl->addScale(input, mode, shift, scale, power);
7052 }
7053
7054 //!
7055 //! \brief Add a SoftMax layer to the network.

Callers 5

pyGraph.cppFile · 0.80
parseBatchNormalizationFunction · 0.80
parseReductionFunction · 0.80
parsePowerFunction · 0.80
parseScaleFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected