coder.TensorRTConfig
参数配置深度学习的代码生成英伟达TensorRT图书馆
描述
的coder.TensorRTConfig
对象包含了英伟达®高性能深度学习推理优化器和运行时库(TensorRT)具体参数。codegen
使用这些参数来生成CUDA®为深层神经网络代码。
使用一个coder.TensorRTConfig
对象代码生成、分配它DeepLearningConfig
财产的coder.gpuConfig
对象传递给codegen
。
创建
通过创建一个TensorRT配置对象coder.DeepLearningConfig
函数库设置为目标“tensorrt”
。