Can compiled .engine be reverse engineered?


I have a Pytorch model compiled to TensorRT, which I need to deliver to a third party client so they can use it (business requirement, we cannot perform the detections in our cloud service).

Since we’re worried about other people stealing the architecture of our model, as well as the weights, I would like to know if there is any way of reverse engineering the .engine file and extracting said weights and model architecture.

Thank you in advance

Hi @mathiasbertorelli,

Yes, it would not be that difficult to reverse engineer a plan file. If the you want to protect against that, then you need to protect it against tampering. To protect .plan file can be encrypted or the weights can be loaded at runtime via the refit interface.

Thank you.

Thank you so much for your answer.

1 Like