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

R Session Aborted when using $to_sparse() #1286

Open
edwardduanhao opened this issue Feb 28, 2025 · 2 comments
Open

R Session Aborted when using $to_sparse() #1286

edwardduanhao opened this issue Feb 28, 2025 · 2 comments

Comments

@edwardduanhao
Copy link

require(torch)
A = nnf_one_hot(rep(1:10, 31:40))
A$to_sparse()

Then the session will be aborted. It should not be a memory overflow.
Session information is attached.

Image
@Bernie-K
Copy link

There were some issues with 0.14.1 leading to session abort. However, this was with windows.
See issue #1273. The torch package version 0.14.2 fixed this.
Could you try updating to 0.14.2?

@edwardduanhao
Copy link
Author

Hi,
I updated the torch to 0.14.2 and the issue persists. It seems that it is related to $to_sparse function.

Thank you.

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