TensorRT
TensorRT copied to clipboard
NvInferRuntimeCommon.h is #included in sample code
Hi,
NvInferRuntimeCommon.h clearly states that it must not be included:
//! \warning Do not directly include this file. Instead include NvInferRuntime.h
However, it's included in many places in the samples directory, for example here.
I take it that NvInferRuntimeCommon.h is an implementation detail and thus we clients should not include it directly. Could therefore the samples be updated to reflect best practices?
Thanks!
@rajeevsrao ^ ^
@zerollzeng could you file a bug to track this? thanks!
Filed internal bug 4411864 to track
this is fixed in rel-10.0, see https://github.com/NVIDIA/TensorRT/blob/release/10.0/samples/common/ErrorRecorder.h,
closing and thanks all!