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

[docs] Update index.rst for surrogate gradient #437

Merged
merged 1 commit into from
Aug 11, 2023

Conversation

Routhleck
Copy link
Collaborator

Description

Update index.rst for surrogate gradient and Corret some mistakes in saving_and_loading.ipynb

@chaoming0625
Copy link
Collaborator

There is one missing note for Custom saving and loading:

For customizing the saving, users can use:

class YourClass(bp.BrainPyObject):
   def __save_state__(self):
     ....

For customizing the loading, users can use:

class YourClass(bp.BrainPyObject):
   def __load_state__(self, state_dict):
     ....

Great work by the way.

https://brainpy.readthedocs.io/en/latest/tutorial_toolbox/saving_and_loading.html

@chaoming0625 chaoming0625 merged commit cc2985f into brainpy:master Aug 11, 2023
19 checks passed
@Routhleck
Copy link
Collaborator Author

There is one missing note for Custom saving and loading:

For customizing the saving, users can use:

class YourClass(bp.BrainPyObject):
   def __save_state__(self):
     ....

For customizing the loading, users can use:

class YourClass(bp.BrainPyObject):
   def __load_state__(self, state_dict):
     ....

Great work by the way.

https://brainpy.readthedocs.io/en/latest/tutorial_toolbox/saving_and_loading.html

Understood👌

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