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

Update neuron.py for save_state warnings on miner #50

Open
wants to merge 1 commit into
base: staging-2
Choose a base branch
from

Conversation

sakrobinson
Copy link
Contributor

commented out call to save_state() which is not implemented

Removed call to save_state() which is not implemented
@sakrobinson
Copy link
Contributor Author

#50

Copy link
Contributor

@waynemystir waynemystir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Commenting out self.save_state() doesn't seem like a great option... it would prevent neurons that want to do so from doing so.

@@ -121,7 +121,7 @@ def sync(self):
self.set_weights()

# Always save state.
self.save_state()
#self.save_state()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What happens to neurons that want to save their state?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I dont think they would be missing much:

def save_state(self):
    bt.logging.warning(
        "save_state() not implemented for this neuron. You can implement this function to save model checkpoints or other useful data."
    )

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.

2 participants