How to set quantized layers index?


Hello ,
I use tensorrt post-training quantization to quantize my model.
found that leakyrelu supports bad.

So could I select the quantized layers all by hands?
If I can, how could I do?
Maybe C++ version is better.


TensorRT Version:
GPU Type: GTX1650 / xavier NX
Nvidia Driver Version: 450
CUDA Version: 11.0
CUDNN Version: 8.0
Operating System + Version: ubuntu18.04
Python Version (if applicable):
TensorFlow Version (if applicable):
PyTorch Version (if applicable):
Baremetal or Container (if container which image + tag):

Relevant Files

Please attach or include links to any models, data, files, or scripts necessary to reproduce your issue. (Github repo, Google Drive, Dropbox, etc.)

Steps To Reproduce

Please include:

  • Exact steps/commands to build your repro
  • Exact steps/commands to run your repro
  • Full traceback of errors encountered

Could you please refer to below link in case it helps