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 #1191

Open
chri002 opened this issue Sep 3, 2024 · 2 comments
Open

R session Aborted #1191

chri002 opened this issue Sep 3, 2024 · 2 comments

Comments

@chri002
Copy link

chri002 commented Sep 3, 2024

I have tried to follow the basic torch guide: Guess the correlation; but whenever I get to the point of running the R training, an error ‘R session aborted’ returns.

@sebffischer
Copy link
Collaborator

You should provide the code you are trying to run as it is otherwise hard to help you.

@chri002
Copy link
Author

chri002 commented Sep 6, 2024

The tutorial, and code, that I followed is "guess the correlation" from "https: //torch.mlverse.org /start /guess_the_correlation /".
The error message is created when executing the following command:
fitted <- net %>%
setup(
loss = function(y_hat, y_true) nnf_mse_loss(y_hat, y_true$unsqueeze(2)),
optimizer = optim_adam
) %>%
fit(train_dl, epochs = 10, valid_data = test_dl)

The other commands seem to work, I can run an inference, build the model, move it between RAM and VRAM. But when I run the training it seems to collapse.
I hope it can be resolved.

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