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

ensure moving_avg_scores shape matches neuron_weights shape #20

Merged
merged 2 commits into from
Sep 27, 2023

Conversation

ifrit98
Copy link
Contributor

@ifrit98 ifrit98 commented Sep 27, 2023

Cleans up a bug when loading from the state dict. If the saved neuron_weights from the state dict is smaller than the metagraph.n than we'd run into a shape issue. This is rare but would happen if the metagraph grows in-between saving and loading.

Also replaces k, was hardcoded to 10.

@ifrit98 ifrit98 merged commit 3779010 into main Sep 27, 2023
4 checks passed
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.

None yet

2 participants