Closed Routhleck closed 1 year ago
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
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👌
Description
Update
index.rst
for surrogate gradient and Corret some mistakes insaving_and_loading.ipynb