You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I used trt-engine-explorer to visualize the engine structure, two 'reformat' nodes appeared. How can I remove these two 'reformat' nodes?
Reformatting layers can be inserted by TensorRT for internal tensors to improve performance.
As usual, TensorRT assumes that the network inputs/outputs are in FP32 linear format. However, many tactics in TensorRT require different formats, like NHWC8 or NC/32HW32 formats, so TensorRT automatically inserts Reformat layers to transform the format of the tensors.
I am currently learning about two tools, pytorch-quantization and trt-engine-explorer. I have created a virtual model structure as follows:
When I used trt-engine-explorer to visualize the engine structure, two 'reformat' nodes appeared. How can I remove these two 'reformat' nodes?
Environment
TensorRT Version:8.6.1.6
NVIDIA GPU:RTX A1000 laptop
NVIDIA Driver Version: 535.129.03
CUDA Version:11.8
CUDNN Version:8.6.0
Operating System:
Python Version (if applicable):3.8
PyTorch Version (if applicable):1.13
This is onnxfile.
quan.onnx.zip
Here is the complete code:
code.py.zip
The text was updated successfully, but these errors were encountered: