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

Cuda error in SpikingActivation Function #6

Open
Rwik2000 opened this issue Jun 20, 2021 · 1 comment
Open

Cuda error in SpikingActivation Function #6

Rwik2000 opened this issue Jun 20, 2021 · 1 comment

Comments

@Rwik2000
Copy link

Dear Team,
In the functional.py, SpikingActivation class, forward function,
Please do add the provision for GPU usage. The initial state which is initialised if not given prior hand is in the cpu, whereas everything else remains in gpu (if course we use gpu). Can you add a provision of a gpu(.cuda())

@drasmuss
Copy link
Member

Hi @Rwik2000. We don't want to assume that the initial state will be on the GPU, as that would cause errors for people running on CPU. You can opt-in to GPU usage by passing in an explicit initial state (which you can assign to the GPU). It's possible that there's a more elegant way to support running on both CPU and GPU, if you have any ideas we would welcome a PR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants