How to access the model layers value for a specific input

How to access the model layers value for a specific input having the layer name?
It is not clear in the DeepStream SDK Documentation.

This is my configurations:

  • NVIDIA Jetson Xavier NX (Developer Kit Version)
    • Jetpack UNKNOWN [L4T 32.4.4]
    • NV Power Mode: MODE_15W_6CORE - Type: 2
    • jetson_stats.service: active
  • Libraries:
    • CUDA: 10.2.89
    • cuDNN: 8.0.0.180
    • TensorRT: 7.1.3.0
    • Visionworks: 1.6.0.501
    • OpenCV: 4.1.1 compiled CUDA: NO
    • VPI: 0.4.4
    • Vulkan: 1.2.70

output layer or middle layer? for output layer, we have one property infer-raw-output-dir in config for deepstream-app, which dump the inference buffer to file. for middle layer, it should be TRT related, you should look for TRT documentation.