Why pytorch model size got increased while loading by c++? I have used torchscript, to load the model into c++ from pytorch

(Dinesh Mareedu) #1

Can you please help me to know the reason!!

(Martin Huber) #2

what do you mean by, the size increased?

(Alexander Klus) #3

When I loaded by Python code together with the .pth models (or at least they should be included automatically) into a .pt model for C++, the model actually got substantially smaller than the .pth model!

(Dinesh Mareedu) #4

Thanks for the concern, Actual model size is 2.3MB. After the torch script procedure for c++, it became 4MB.Actually the problem is resolved…

Can you plz help me to cross compile the pytorch code for pine64…