[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] Documentation changes
[ ] Other (please describe):
What is the current behavior?
There seems to be a small bug in the implementation of the adrf neuron (lava-dl/src/lib/dl/slayer/neuron/adrf.py). The Neuron.forward() function calls self.spike(real, imag, threshold + refractory), while it should be self.spike(real, imag, threshold, refractory) according to the definition of the function Neuron.spike() in the same file. This results in a TypeError because the last positional argument is missing in the function call.
What is the new behavior?
The function call is now executed with the four parameters as four positional arguments, as intended.
Issue Number: #277
Objective of pull request: Small bug fix, I changed self.spike(real, imag, threshold + refractory) to self.spike(real, imag, threshold, refractory)
Pull request checklist
Your PR fulfills the following requirements:
flakeheaven lint src/lava tests/
) and (bandit -r src/lava/.
) pass locallypytest
) passes locallyPull request type
Please check your PR type:What is the current behavior?
What is the new behavior?
Does this introduce a breaking change?
Supplemental information