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

DeepSVDD loss backward is commented #606

Open
modanesh opened this issue Oct 30, 2024 · 1 comment
Open

DeepSVDD loss backward is commented #606

modanesh opened this issue Oct 30, 2024 · 1 comment

Comments

@modanesh
Copy link

In DeepSVDD, why is the loss.backward() commented out?

At this line:

# loss.backward()

Thanks!

@modanesh modanesh changed the title DeepSVDD loss is commented DeepSVDD loss backward is commented Oct 30, 2024
@modanesh
Copy link
Author

When it is uncommented, I'm getting this error:

RuntimeError: Trying to backward through the graph a second time (or directly access saved tensors after they have already been freed). Saved intermediate values of the graph are freed when you call .backward() or autograd.grad(). Specify retain_graph=True if you need to backward through the graph a second time or if you need to access saved tensors after calling backward.

@modanesh modanesh mentioned this issue Oct 31, 2024
12 tasks
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