duan8/tutorials/migrating_from_tensorrt_4_to_7.md
2020-05-23 00:05:45 +08:00

635 B

Migrating from TensorRT 4 to 7

The following APIs are deprecated and replaced in TensorRT 7.

  • DimsCHW, replaced by Dims3
  • addConvolution(), replaced by addConvolutionNd()
  • addPooling(), replaced by addPoolingNd()
  • addDeconvolution(), replaced by addDeconvolutionNd()
  • createNetwork(), replaced by createNetworkV2()
  • buildCudaEngine(), replaced by buildEngineWithConfig()
  • createPReLUPlugin(), replaced by addActivation() with ActivationType::kLEAKY_RELU
  • IPlugin and IPluginExt class, replaced by IPluginV2IOExt or IPluginV2DynamicExt
  • Use the new Logger class defined in logging.h