We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Objective of issue: sin_decay, and cos decay need to be casted to np.int32 instead of int. (Else you can't instantiate an array of neurons).
Lava version:
I'm submitting a ...
Current behavior:
Expected behavior:
Steps to reproduce:
neuron = RF(shape=(2,), period=np.array([10, 20]))
neuron.run(condition=RunSteps(num_steps=num_steps, blocking=True), run_cfg=run_config)
Related code:
rf/process.py looks like this:
... if decay_bits > 0: sin_decay = int(sin_decay * (1 << decay_bits)) cos_decay = int(cos_decay * (1 << decay_bits))
when it should look like this:
... if decay_bits > 0: sin_decay = np.int32(sin_decay * (1 << decay_bits)) cos_decay = np.int32(cos_decay * (1 << decay_bits))
Other information:
Traceback (most recent call last): File "C:\Users\mjurado3\workspace\lava_dev\lava\test_resonator_process.py", line 65, in <module> neuron = RF(shape=(n_neurons,), period=np.array([10, 20]), alpha=alpha, File "C:\Users\mjurado3\workspace\lava_dev\lava-dl\.venv\lib\site-packages\lava\magma\core\process\process.py", line 33, in __call__ obj = type.__call__(cls, *args, **kwargs) File "C:\Users\mjurado3\workspace\lava_dev\lava-dl\.venv\lib\site-packages\lava\proc\rf\process.py", line 71, in __init__ sin_decay = int(sin_decay * (1 << decay_bits)) TypeError: only size-1 arrays can be converted to Python scalars
Issue came up when I was writing rf neuron code for netx.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Objective of issue: sin_decay, and cos decay need to be casted to np.int32 instead of int. (Else you can't instantiate an array of neurons).
Lava version:
I'm submitting a ...
Current behavior:
Expected behavior:
Steps to reproduce:
neuron = RF(shape=(2,), period=np.array([10, 20]))
neuron.run(condition=RunSteps(num_steps=num_steps, blocking=True), run_cfg=run_config)
Related code:
rf/process.py looks like this:
when it should look like this:
Other information:
Issue came up when I was writing rf neuron code for netx.
The text was updated successfully, but these errors were encountered: