9c0d9880e9cc99bbe3522a3e4dbd051452b5d4ed,snntoolbox/parsing/utils.py,AbstractModelParser,parse,#AbstractModelParser#,79
Before Change
if self.config.getboolean("cell", "binarize_weights"):
print("Binarizing weights.")
attributes["parameters"] = \
(binarize(attributes["parameters"][0]),
attributes["parameters"][1])
self.absorb_activation(layer, attributes)
if "Pooling" in layer_type:
After Change
from snntoolbox.utils.utils import binarize
print("Binarizing weights.")
weights = binarize(weights)
elif self.config.getboolean("cell", "quantize_weights") :
assert "Qm.f" in attributes, \
"In the [cell] section of the configuration file, "\
""quantize_weights" was set to True. For this to " \
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances Project Name: NeuromorphicProcessorProject/snn_toolbox
Commit Name: 9c0d9880e9cc99bbe3522a3e4dbd051452b5d4ed
Time: 2017-07-10
Author: bodo.rueckauer@gmail.com
File Name: snntoolbox/parsing/utils.py
Class Name: AbstractModelParser
Method Name: parse
Project Name: NeuromorphicProcessorProject/snn_toolbox
Commit Name: 71d61f102189f8b7337567ca34ad590f2ddf4808
Time: 2018-02-27
Author: bodo.rueckauer@gmail.com
File Name: snntoolbox/simulation/target_simulators/INI_ttfs_target_sim.py
Class Name: SNN
Method Name: simulate
Project Name: NeuromorphicProcessorProject/snn_toolbox
Commit Name: 66268ffdc847e64216114871bd4169ad7872966a
Time: 2019-04-11
Author: bodo.rueckauer@intel.com
File Name: snntoolbox/simulation/target_simulators/pyNN_target_sim.py
Class Name: SNN
Method Name: build_convolution