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

Activation maximization issues #3

Open
AT1981 opened this issue May 4, 2022 · 0 comments
Open

Activation maximization issues #3

AT1981 opened this issue May 4, 2022 · 0 comments

Comments

@AT1981
Copy link

AT1981 commented May 4, 2022

Hi thanks for sharing your work.
Just to let you know that your activation maximization examples do not work (using pytorch 1.9):

1st example returns:
RuntimeError: Output 0 of BackwardHookFunctionBackward is a view and is being modified inplace. This view was created inside a custom Function (or because an input was returned as-is) and the autograd logic to handle view+inplace would override the custom backward associated with the custom Function, leading to incorrect gradients. This behavior is forbidden. You can remove this warning by cloning the output of the custom Function.

2nd and 3rd examples return:
RuntimeError: The size of tensor a (3) must match the size of tensor b (64) at non-singleton dimension 1

Your examples were used as is without any modifications.

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