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

Tensor support for wmin/wmax #509

Merged
merged 24 commits into from
Aug 18, 2021

Conversation

C-Earl
Copy link
Contributor

@C-Earl C-Earl commented Jul 22, 2021

Added ability to use tensors for wmin/wmax on synaptic connections. Primary changes were the assignment of wmin and wmax as torch.Parameter's in the abstract connection class so they can always be interpreted as tensors (either of single or multiple values), and wrapping checks for -/+ inf in the wmin/wmax with an any() function. This occurred in both the Learning.py and Topology.py files.

Note:

  • Local connection and Sparse connection have seen decently large changes. Our testing module passed without any errors, and we don't believe core functionality has changed. Regardless, these are probably the most prone to new logical errors.

mahbodnr and others added 24 commits July 5, 2021 13:00
Kwarg wmin/wmax change (test commit)
- wmin/wmax needed in parameters to interact with w (which may be moved to a different device with the module).
…s a small clarification on its documentation)
…ionality for tensor wmin/wmax in SparseConnection
…ng functionality for tensor wmin/wmax in SparseConnection"

This reverts commit 78596e3.
…ing adding functionality for tensor wmin/wmax in SparseConnection""

This reverts commit 40de0da.
- Removed MaxPool2DConnection
- Added conditional checks for specific connections & update rules
- wmin/wmax added to input connection due to WeightDependentPostPre rule not liking the default -inf/+inf values on the input layer
@Hananel-Hazan
Copy link
Collaborator

@cearlUmass and @mahbodnr Well Done!

@Hananel-Hazan Hananel-Hazan reopened this Aug 18, 2021
@Hananel-Hazan Hananel-Hazan merged commit 15bb926 into BindsNET:master Aug 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants