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

Clean up CR code #156

Open
samadejacobs opened this issue Dec 24, 2017 · 1 comment
Open

Clean up CR code #156

samadejacobs opened this issue Dec 24, 2017 · 1 comment
Labels

Comments

@samadejacobs
Copy link
Collaborator

There are quite a number of commented checkpoint/restart code, are these placeholders? if not we should clean them up.
e.g. (in layers.cpp):

bool Layer::saveToCheckpoint(int fd, const char *filename, size_t *bytes) const {
//writeDist(fd, filename, *m_weights, bytes);

// Need to catch return value from function
// m_optimizer->saveToCheckpoint(fd, filename, bytes);
return true;
}

bool Layer::loadFromCheckpoint(int fd, const char *filename, size_t *bytes) {
// TODO: implement reader for other matrix distributions
//readDist(fd, filename, (DistMat&) *m_weights, bytes);

// Need to catch return value from function
// m_optimizer->loadFromCheckpoint(fd, filename, bytes);
return true;
}

bool Layer::save_to_checkpoint_shared(persist& p) const {
//for (weights *w : m_weights) {
// w->saveToCheckpointShared(p);
//}
return true;
}

bool Layer::load_from_checkpoint_shared(persist& p) {
//for (weights *w : m_weights) {
// w->loadFromCheckpointShared(p);
//}

return true;
}

@bvanessen
Copy link
Collaborator

bvanessen commented Dec 24, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants