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

Error with pacconv: trying to differentiate twice a function that was marked with @once_differentiable #28

Open
maxbeauchamp opened this issue Feb 8, 2022 · 0 comments

Comments

@maxbeauchamp
Copy link

Hi,

I tried to use pacnet in one my code but when using the function :
pacconv = PacConv2d(in_ch, out_ch, f)
out_pac = pacconv(input, None, guide_k)
In my case input has shape(2,1,200,200) and guide_k (2,1,3,3,200,200).

The forward pass of my code is ok but when computing the backward pass I got this error message:
trying to differentiate twice a function that was marked with @once_differentiable

Do you have any idea of this issue ? Replacing the pacconv by a simple convolution layer removes the error.

Thanks in advance

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