104d77214ea82e4811432b5b075e66c4c9223862,snntoolbox/core/inisim.py,,reset,#Any#,67
Before Change
def reset(self):
if hasattr(self, "previous"):
reset(self.previous)
self.mem.set_value(floatX(np.zeros(self.output_shape)))
self.refrac_until.set_value(floatX(np.zeros(self.output_shape)))
After Change
def reset(self):
if self.inbound_nodes[0].inbound_layers:
reset(self.inbound_nodes[0].inbound_layers[0])
self.mem.set_value(floatX(np.zeros(self.output_shape)))
self.refrac_until.set_value(floatX(np.zeros(self.output_shape)))
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 4
Instances
Project Name: NeuromorphicProcessorProject/snn_toolbox
Commit Name: 104d77214ea82e4811432b5b075e66c4c9223862
Time: 2016-05-12
Author: bodo.rueckauer@gmail.com
File Name: snntoolbox/core/inisim.py
Class Name:
Method Name: reset
Project Name: lcswillems/torch-rl
Commit Name: c60fbc4da1b0b1732d8a4e15f6a60c48251150b4
Time: 2018-06-11
Author: lcswillems@gmail.com
File Name: torch_rl/torch_rl/utils/penv.py
Class Name: ParallelEnv
Method Name: step
Project Name: asyml/texar
Commit Name: 362ca59b47569f59909aa534f75abdb838b3aad9
Time: 2018-04-04
Author: zichaoy@cs.cmu.edu
File Name: examples/tsf/tsf_trainer.py
Class Name: TSFTrainer
Method Name: train
Project Name: openai/baselines
Commit Name: b71152eea0470ac2629c33e0fc66a54fe494949f
Time: 2018-02-26
Author: matthiasplappert@me.com
File Name: baselines/common/vec_env/dummy_vec_env.py
Class Name: DummyVecEnv
Method Name: reset