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

[ENH] TorchBiphasicAxonMapSpatial #621

Merged
merged 13 commits into from
Jun 14, 2024

Conversation

HououinKyouma-2036
Copy link

@HououinKyouma-2036 HououinKyouma-2036 commented May 27, 2024

Description

Implemented TorchBiphasicAxonMapSpatial class with constructor and forward function.

Modified predict_percept and relavent methods.

BiphasicsAxonMapSpatial now allows for self.engine to be torch, on top of jax, cython, and serial.

Closes #615

Type of Change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation change

Checklist

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

For detailed information on these and other aspects, see the contribution guidelines: https://pulse2percept.readthedocs.io/en/latest/developers/contributing.html

* update wheels

* test with cibuildwheel 2.16.5
pulse2percept/models/granley2021.py Outdated Show resolved Hide resolved
pulse2percept/models/granley2021.py Outdated Show resolved Hide resolved
pulse2percept/models/granley2021.py Outdated Show resolved Hide resolved
pulse2percept/models/granley2021.py Outdated Show resolved Hide resolved
pulse2percept/models/granley2021.py Outdated Show resolved Hide resolved
pulse2percept/models/granley2021.py Outdated Show resolved Hide resolved
pulse2percept/models/granley2021.py Outdated Show resolved Hide resolved
pulse2percept/models/granley2021.py Outdated Show resolved Hide resolved
pulse2percept/models/granley2021.py Outdated Show resolved Hide resolved
pulse2percept/models/granley2021.py Outdated Show resolved Hide resolved
pulse2percept/models/granley2021.py Show resolved Hide resolved
pulse2percept/models/granley2021.py Outdated Show resolved Hide resolved
pulse2percept/models/granley2021.py Outdated Show resolved Hide resolved
@jgranley jgranley merged commit ceaff52 into pulse2percept:torch Jun 14, 2024
23 checks passed
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.

[ENH] Add torch engine for BiphasicAxonMapModel
2 participants