\brief Add a quantization layer to the network. \param input The input tensor to be quantized. \param scale A tensor with the scale value. \see IQuantizeLayer \p input tensor data type must be DataType::kFLOAT. \p scale tensor data type must be DataType::kFLOAT. The subgraph which terminates with the \p scale tensor must be a build-time constant. \return The new quantization layer, or nullptr
| 8113 | //! \return The new quantization layer, or nullptr if it could not be created. |
| 8114 | //! |
| 8115 | IQuantizeLayer* addQuantize(ITensor& input, ITensor& scale) noexcept |
| 8116 | { |
| 8117 | return mImpl->addQuantize(input, scale); |
| 8118 | } |
| 8119 | |
| 8120 | //! |
| 8121 | //! \brief Add an If-conditional layer to the network. |