How to convert pretrained .pt extension pytorch model generated by YoloV5 into .ptl (pytorch lite interpreter format) extension model to load on mobile

Refer to thread Convert pytorch model to ptl

You might have to check if your model definition has variable number of arguments