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

Method setDefaultDeviceType

include/NvInfer.h:9374–9377  ·  view source on GitHub ↗

\brief Sets the default DeviceType to be used by the builder. It ensures that all the layers that can run on this device will run on it, unless setDeviceType is used to override the default DeviceType for a layer. \see getDefaultDeviceType()

Source from the content-addressed store, hash-verified

9372 //! \see getDefaultDeviceType()
9373 //!
9374 void setDefaultDeviceType(DeviceType deviceType) noexcept
9375 {
9376 mImpl->setDefaultDeviceType(deviceType);
9377 }
9378
9379 //!
9380 //! \brief Get the default DeviceType which was set by setDefaultDeviceType.

Callers 2

setupNetworkAndConfigFunction · 0.80
enableDLAFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected