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

Method setDeviceType

include/NvInfer.h:9302–9305  ·  view source on GitHub ↗

\brief Set the device that this layer must execute on. \param layer which layer to execute. \param deviceType that this layer must execute on. If DeviceType is not set or is reset, TensorRT will use the default DeviceType set in the builder. \note The device type for a layer must be compatible with the safety flow (if specified). For example a layer cannot be marked for DLA execution while the bu

Source from the content-addressed store, hash-verified

9300 //! \see getDeviceType()
9301 //!
9302 void setDeviceType(ILayer const* layer, DeviceType deviceType) noexcept
9303 {
9304 mImpl->setDeviceType(layer, deviceType);
9305 }
9306
9307 //!
9308 //! \brief Get the device that this layer executes on.

Callers 1

setLayerDeviceTypesFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected