Skip to content

GPU Implementation? #47

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

Closed
haskarb opened this issue Oct 11, 2017 · 4 comments
Closed

GPU Implementation? #47

haskarb opened this issue Oct 11, 2017 · 4 comments

Comments

@haskarb
Copy link

haskarb commented Oct 11, 2017

How can I use this package with Keras in optimiser class?
Any thoughts on GPU implementation?

@ljvmiranda921
Copy link
Owner

Hi, I've realized you're the same person in Issue #19

As of now, implementing this package on GPU (perhaps via CUDA) is not yet being considered in the Development Roadmap for v.0.2.0 (#5). In all honesty I don't have any experience in CUDA 😞 . If you can help and show us a lead, then perhaps we can add this feature for v.0.3.0.

For your first question, what you can do is take the update_* and optimize methods of a PSO optimizer from pyswarms, and use these methods to populate a custom-class that inherits from Keras' Optimizer base class. 👍

@haskarb
Copy link
Author

haskarb commented Oct 13, 2017

@ljvmiranda921 I have written a GPU PSO code with pyCUDA. I will share with you once you start v.0.3.0.
Thanks.

@haskarb haskarb closed this as completed Oct 13, 2017
@ljvmiranda921
Copy link
Owner

Awesome! Okay, I will ping you once we've started tackling this feature. Thanks a lot!

@ljvmiranda921
Copy link
Owner

Hmmm, I just realized that maybe I can leverage Pytorch (as a substitute to numpy) to take advantage of GPU computations. This is just an idea in the clouds but I'll cook something up this winter vacation.

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

No branches or pull requests

2 participants