Looking at Yunjey’s example here, the net is saved as a .pkl file. I have read on forums here with people trying to access models that are saved with .pth
extension.
Does it count if they are saved as .pkl
files? If it does, what is the correct way to load a saved net?
Also, is there a way to import a pytorch model into c++?