Thanks for your reply. Should I be pass to torch.save the model object like I did above or VAE which is the class itself?  When I save the model object add try to load it again, I get “‘str’ object is not callable” as I fail at "result = map_location(storage, location)" and for the exact same call, sometime I get a different error: " Attribute error" saying that it Couldn’t locate/load the VAE class.