Reference topic create-network-def-scratch
The advantage of using tensorRT directly to create a network is to avoid the problems of different onnx exports.
- model -> onnx -> TensorRT
- model -> TensorRT
solution
INetworkDefinition
Existing network types are added through addxx, and custom types are added through addPluginV2.
- addConvolution, addFullyConnected ...
- addPluginV2