How to get ILayer interface from ICudaEngine?

Description

We know we can use IRuntime::deserializeCudaEngine() to create an engine from the serialized blob data before, but how can I get the ILayer interface for every layer objects in the engine? Because the infer engine incude some my custom layers, I need to do some configs for them before infer, so how can I get the ILayer or IPluginV2 interface?

Environment

TensorRT Version: 8.5.3
GPU Type: RTX 4070
Nvidia Driver Version:
CUDA Version:
CUDNN Version:
Operating System + Version:
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