Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue #411 randominit #424

Merged
merged 11 commits into from
Dec 15, 2021
Merged

Issue #411 randominit #424

merged 11 commits into from
Dec 15, 2021

Conversation

sammlapp
Copy link
Collaborator

No description provided.

@sammlapp sammlapp changed the title Issue 411 randominit Issue #411 randominit Dec 10, 2021
@sammlapp sammlapp linked an issue Dec 10, 2021 that may be closed by this pull request
simply use torch.save() and torch.load() to save and load entire model 
objects, which will retain architecture information and all other 
relevant parameters. The previous implementation was overly complicated 
simply because I didn't realize torch could just save everything, 
apparently via pickle.
SafeDataset was both a child class of Dataset and had an attribute 
`dataset` that was class Dataset, which was confusing and unnecessary. 
Now it is not a subclass of anything, and I removed the error-causing 
__getattr__ implementation.
@sammlapp sammlapp merged commit 266e322 into develop Dec 15, 2021
@sammlapp sammlapp deleted the issue_411_randominit branch December 15, 2021 15:21
@sammlapp sammlapp linked an issue Dec 15, 2021 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Resnet18Multiclass cannot skip loading imagenet weights simplify save/load of models?
1 participant