![]() |
Jetson Inference
DNN Vision Library
|
DNN abstract base class that provides TensorRT functionality underneath. More...
Classes | |
class | tensorNet |
Abstract class for loading a tensor network with TensorRT. More... | |
Macros | |
#define | DEFAULT_MAX_BATCH_SIZE 1 |
Default maximum batch size. More... | |
#define | LOG_TRT "[TRT] " |
Prefix used for tagging printed log output from TensorRT. More... | |
Enumerations | |
enum | precisionType { TYPE_DISABLED = 0, TYPE_FASTEST, TYPE_FP32, TYPE_FP16, TYPE_INT8, NUM_PRECISIONS } |
Enumeration for indicating the desired precision that the network should run in, if available in hardware. More... | |
enum | deviceType { DEVICE_GPU = 0, DEVICE_DLA, DEVICE_DLA_0 = DEVICE_DLA, DEVICE_DLA_1, NUM_DEVICES } |
Enumeration for indicating the desired device that the network should run on, if available in hardware. More... | |
enum | modelType { MODEL_CUSTOM = 0, MODEL_CAFFE, MODEL_ONNX, MODEL_UFF } |
Enumeration indicating the format of the model that's imported in TensorRT (either caffe, ONNX, or UFF). More... | |
enum | profilerQuery { PROFILER_PREPROCESS = 0, PROFILER_NETWORK, PROFILER_POSTPROCESS, PROFILER_VISUALIZE, PROFILER_TOTAL } |
Profiling queries. More... | |
enum | profilerDevice { PROFILER_CPU = 0, PROFILER_CUDA } |
Profiler device. More... | |
Functions | |
const char * | precisionTypeToStr (precisionType type) |
Stringize function that returns precisionType in text. More... | |
precisionType | precisionTypeFromStr (const char *str) |
Parse the precision type from a string. More... | |
const char * | deviceTypeToStr (deviceType type) |
Stringize function that returns deviceType in text. More... | |
deviceType | deviceTypeFromStr (const char *str) |
Parse the device type from a string. More... | |
const char * | modelTypeToStr (modelType type) |
Stringize function that returns modelType in text. More... | |
modelType | modelTypeFromStr (const char *str) |
Parse the model format from a string. More... | |
const char * | profilerQueryToStr (profilerQuery query) |
Stringize function that returns profilerQuery in text. More... | |
DNN abstract base class that provides TensorRT functionality underneath.
These functions aren't typically accessed by end users unless they are implementing their own DNN class like imageNet or detectNet.
#define DEFAULT_MAX_BATCH_SIZE 1 |
Default maximum batch size.
#define LOG_TRT "[TRT] " |
Prefix used for tagging printed log output from TensorRT.
enum deviceType |
Enumeration for indicating the desired device that the network should run on, if available in hardware.
enum modelType |
enum precisionType |
Enumeration for indicating the desired precision that the network should run in, if available in hardware.
enum profilerDevice |
enum profilerQuery |
Profiling queries.
Enumerator | |
---|---|
PROFILER_PREPROCESS | |
PROFILER_NETWORK | |
PROFILER_POSTPROCESS | |
PROFILER_VISUALIZE | |
PROFILER_TOTAL |
deviceType deviceTypeFromStr | ( | const char * | str | ) |
Parse the device type from a string.
const char* deviceTypeToStr | ( | deviceType | type | ) |
Stringize function that returns deviceType in text.
modelType modelTypeFromStr | ( | const char * | str | ) |
Parse the model format from a string.
const char* modelTypeToStr | ( | modelType | type | ) |
Stringize function that returns modelType in text.
precisionType precisionTypeFromStr | ( | const char * | str | ) |
Parse the precision type from a string.
const char* precisionTypeToStr | ( | precisionType | type | ) |
Stringize function that returns precisionType in text.
const char* profilerQueryToStr | ( | profilerQuery | query | ) |
Stringize function that returns profilerQuery in text.