Skip to content
New issue

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

Netx DelaySynapse Bug: Weight_exp is None #315

Closed
Michaeljurado42 opened this issue May 19, 2024 · 0 comments
Closed

Netx DelaySynapse Bug: Weight_exp is None #315

Michaeljurado42 opened this issue May 19, 2024 · 0 comments
Labels
0-needs-review 1-bug Something isn't working

Comments

@Michaeljurado42
Copy link
Contributor

Michaeljurado42 commented May 19, 2024

Describe the bug
weight_exp is not set in Delay Synapses in netx.

See here:
https://github.com/lava-nc/lava-dl/blob/main/src/lava/lib/dl/netx/blocks/process.py#L177

To reproduce current behavior
Steps to reproduce the behavior:

  1. When I run this code
from lava.lib.dl import netx

file_id = '1-FEHWht9DXsnEvt5IaUXWRru0awr4mtk'
url = f'https://drive.google.com/uc?id={file_id}&export=download'
local_filename = 'network.net'
# Function to download and save the file
def download_file(url, local_filename):
    response = requests.get(url)
    with open(local_filename, 'wb') as f:
        f.write(response.content)
    return local_filename
downloaded_file = download_file(url, local_filename)

# Load the network from the downloaded file
net = netx.hdf5.Network(downloaded_file)

print(net.layers[-2].synapse)
print(net.layers[-2].synapse.proc_params.get("weight_exp"))
  1. I get this output
<lava.proc.dense.process.DelayDense object at 0x0000015BA25205E0>
None

Expected behavior

<lava.proc.dense.process.DelayDense object at 0x0000015BA25205E0>
-3

For this particular model, the weight_exp is -3.

Additional context
Very small bug that luckily does not affect the Intel N-DNS challenge or the unit tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0-needs-review 1-bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants