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

Method setOutputType

include/NvInfer.h:731–734  ·  view source on GitHub ↗

\brief Set the output type of this layer Setting the output type constrains TensorRT to choose implementations which generate output data with the given type. If it is not set, TensorRT will select output type based on layer computational precision. TensorRT could still choose non-conforming output type based on fastest implementation. To force choosing the requested output type, set exactly one

Source from the content-addressed store, hash-verified

729 //! \see getOutputType() outputTypeIsSet() resetOutputType()
730 //!
731 void setOutputType(int32_t index, DataType dataType) noexcept
732 {
733 mLayer->setOutputType(index, dataType);
734 }
735
736 //!
737 //! \brief get the output type of this layer

Callers 2

setLayerOutputTypesFunction · 0.80
setLayerPrecisionMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected