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

Avoid custom_gradient warnings #1514

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Avoid custom_gradient warnings #1514

wants to merge 4 commits into from

Conversation

tk2lab
Copy link

@tk2lab tk2lab commented Feb 14, 2022

python.interlnal.custom_gradient.custom_gradient generate warnings: "@custom_gradient grad_fn has 'variables' in signature, but no ResourceVariables were used on the forward pass.".

TF will specify not only arg 'variabels' but also **kwargs.
In 'f_wrapped', vjp_bwd can use kwargs even if vjp_bwd_wrapped does not have kwargs.

@tk2lab
Copy link
Author

tk2lab commented Apr 27, 2022

signed

@midfield midfield requested a review from jburnim June 7, 2022 17:56
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

Successfully merging this pull request may close these issues.

None yet

1 participant