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

Tensors should be moved to the cpu before serialization #2

Merged
merged 1 commit into from
Jul 10, 2023
Merged

Conversation

dfalbel
Copy link
Member

@dfalbel dfalbel commented Jul 10, 2023

Move tensor to cpu before getting it's buffer. Otherwise we are probably accessing wrong memory adresses.
Fix mlverse/luz#131

@dfalbel dfalbel merged commit f0a6e77 into main Jul 10, 2023
2 checks passed
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.

R crashes when attempting to save a model or make checkpoints before moving tensors to CPU
1 participant