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

Modifications of module$parameters should be possible #1225

Open
sebffischer opened this issue Dec 30, 2024 · 0 comments
Open

Modifications of module$parameters should be possible #1225

sebffischer opened this issue Dec 30, 2024 · 0 comments

Comments

@sebffischer
Copy link
Collaborator

I think the following should work:

n = torch::nn_linear(1, 1)
n$parameters$bias$requires_grad = FALSE
#> Error in `runtime_error()`:
#> ! It's not possible to modify the parameters list.

Created on 2024-12-30 with reprex v2.1.1</sup

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

1 participant