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

Method setAllowedFormats

include/NvInfer.h:413–416  ·  view source on GitHub ↗

\brief Set allowed formats for this tensor. By default all formats are allowed. Shape tensors (for which isShapeTensor() returns true) may only have row major linear format. When running network on DLA and the build option kGPU_FALLBACK is not specified, if DLA format(kCHW4 with Int8, kCHW4 with FP16, kCHW16 with FP16, kCHW32 with Int8) is set, the input format is treated as native DLA format wit

Source from the content-addressed store, hash-verified

411 //! \see TensorFormats
412 //!
413 void setAllowedFormats(TensorFormats formats) noexcept
414 {
415 mImpl->setAllowedFormats(formats);
416 }
417
418 //!
419 //! \brief Get a bitmask of TensorFormat values that the tensor supports.

Callers 2

setupNetworkAndConfigFunction · 0.80
buildMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected