sinabs.reset_states() vs buffer detach
The SINABS documentation makes it clear that during training we need to reset the states of the spiking neural network layers since they are stateful.
In the SINABS docs ( https://sinabs.readthedocs.io/en/v1.2.9/tutorials/nmnist.html) this is done via the sinabs.reset_states() method.
In the sinabs-dynapcnn documentation ( https://synsense.gitlab.io/sinabs-dynapcnn/getting_started/notebooks/nmnist_quick_start.html) the call to sinabs.reset_states() is missing, and instead a manual detach() is run on the buffer of the stateful layers.
Are these two methods equivalent?