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

impl Tape for Arc<Mutex<OwnedTape>> #835

Merged
merged 3 commits into from
Jul 31, 2023
Merged

impl Tape for Arc<Mutex<OwnedTape>> #835

merged 3 commits into from
Jul 31, 2023

Conversation

coreylowman
Copy link
Owner

Related to #833

@coreylowman
Copy link
Owner Author

@emchristiansen want to point your dependency to this branch and see how useful it is?

dfdx = { git = "https://github.com/coreylowman/dfdx.git", branch = "arc-mutex-tape" }

You'll have to use it like:

let mut grads = ...;
let tape = Arc::new(Mutex::new(OwnedTape::from(grads)));
x.put_tape(tape)

@coreylowman coreylowman linked an issue Jul 31, 2023 that may be closed by this pull request
@coreylowman coreylowman merged commit 7763510 into main Jul 31, 2023
8 checks passed
@coreylowman coreylowman deleted the arc-mutex-tape branch July 31, 2023 13:04
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.

ArcTape: Add another Tape impl?
1 participant