Created
September 29, 2021 15:46
-
-
Save dpoulopoulos/d648d5ab4f18c8d906bf5fd4e93d18aa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from torch import package | |
path = "/tmp/dcgan.pt" | |
package_name = "dcgan" | |
resource_name = "model.pkl" | |
with package.PackageExporter(path) as exp: | |
exp.save_pickle(package_name, resource_name, model) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment