\brief Set the maximum number of threads. \param maxThreads The maximum number of threads that can be used by the builder. \return True if successful, false otherwise. The default value is 1 and includes the current thread. A value greater than 1 permits TensorRT to use multi-threaded algorithms. A value less than 1 triggers a kINVALID_ARGUMENT error.
| 10224 | //! A value less than 1 triggers a kINVALID_ARGUMENT error. |
| 10225 | //! |
| 10226 | bool setMaxThreads(int32_t maxThreads) noexcept |
| 10227 | { |
| 10228 | return mImpl->setMaxThreads(maxThreads); |
| 10229 | } |
| 10230 | |
| 10231 | //! |
| 10232 | //! \brief get the maximum number of threads that can be used by the builder. |