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 script error #1262

Open
Ayuma1 opened this issue Jan 28, 2025 · 1 comment
Open

R script error #1262

Ayuma1 opened this issue Jan 28, 2025 · 1 comment

Comments

@Ayuma1
Copy link

Ayuma1 commented Jan 28, 2025

I keep on getting this error; > predicted_labels <- max_values[[2]]$cpu()$numpy() # [[2]] gives the indices
Error in fn(self, private, ...) : could not find function "fn"

@dfalbel
Copy link
Member

dfalbel commented Jan 28, 2025

There's no numpy method in torch for R. You should probably use as.array() instead.

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