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

Use multithreading in batch gradient computation #63

Closed
adrhill opened this issue May 24, 2022 · 1 comment
Closed

Use multithreading in batch gradient computation #63

adrhill opened this issue May 24, 2022 · 1 comment

Comments

@adrhill
Copy link
Member

adrhill commented May 24, 2022

Add the Threads.@threads macro to the for-loop in gradients_wrt_batch:
https://github.com/adrhill/ExplainableAI.jl/blob/f1b89ab9c784ff2a86de9997efa904580b2af6dd/src/gradient.jl#L5-L16

@adrhill
Copy link
Member Author

adrhill commented Sep 15, 2023

Not required due to more general implementation using VJPs in #144.

@adrhill adrhill closed this as completed Sep 15, 2023
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

1 participant