Skip to content

Move samples to Matrix #34

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

Merged
merged 4 commits into from
Dec 20, 2022
Merged

Move samples to Matrix #34

merged 4 commits into from
Dec 20, 2022

Conversation

HenriDeh
Copy link
Member

The current implementation does not work with CUDA because it returns views, which will perform scalar indexing when passing a batch to a NN. Moving a sampled batch to a Matrix not only avoids that but also speeds up the matrix multiplications during NN forward and backward passes.

The current implementation does not work with CUDA because it returns views, which will perform scalar indexing when passing a batch to a NN. 
Moving a sampled batch to a Matrix not only avoids that but also speeds up the matrix multiplications during NN forward and backward passes.
@HenriDeh
Copy link
Member Author

I will make a release to include this change. This should make CUDA usable again in RL.jl.

@HenriDeh HenriDeh merged commit d5d7c97 into main Dec 20, 2022
@HenriDeh HenriDeh deleted the Move-samples-to-Matrix branch December 20, 2022 14:41
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.

1 participant