Created
February 7, 2020 23:07
-
-
Save kiranmaya/8fede79ec88a1a89d7a0e3dfd58bc2ff to your computer and use it in GitHub Desktop.
Colab python
This file contains hidden or 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
saving model in gogle drive | |
from google.colab import drive | |
drive.mount('/content/gdrive') | |
model_save_name = 'classifier.pt' | |
path = F"/content/gdrive/My Drive/{model_save_name}" | |
torch.save(model.state_dict(), path) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment