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

Method setPrecision

include/NvInfer.h:659–662  ·  view source on GitHub ↗

\brief Set the computational precision of this layer Setting the precision allows TensorRT to choose an implementation which run at this computational precision. TensorRT could still choose a non-conforming fastest implementation that ignores the requested precision. To force choosing an implementation with the requested precision, set exactly one of the following flags, which differ in what happ

Source from the content-addressed store, hash-verified

657 //! \see getPrecision() precisionIsSet() resetPrecision()
658 //!
659 void setPrecision(DataType dataType) noexcept
660 {
661 mLayer->setPrecision(dataType);
662 }
663
664 //!
665 //! \brief get the computational precision of this layer

Callers 2

setLayerPrecisionsFunction · 0.80
setLayerPrecisionMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected