Https://pytorch.org/tutorials/advanced/cpp_export.html

(Dinesh Mareedu) #1

While trying load model using c++ from pytorch. I could not able do the trace, I got validation error. To solve that error we used deepcopy method and then used trace method. So that, my model size got increased from 2mb to 4mb. Can anyone show me the way to reduce the model size…