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

[Query] object has no attribute '_clip_gradients' for TF2.4 #47

Open
piyush-das opened this issue Jan 20, 2021 · 1 comment
Open

[Query] object has no attribute '_clip_gradients' for TF2.4 #47

piyush-das opened this issue Jan 20, 2021 · 1 comment
Labels
bug Something isn't working TF2.4+

Comments

@piyush-das
Copy link

Hi,

I am using inspect_gen.py with TF2.4. I am encountering the function _clip_gradients here. However, the optimizers class doesn't have a _clip_gradients function. Please let me know what am I missing or an equivalent function for the same.

Thanks

@OverLordGoldDragon
Copy link
Owner

Thanks for the report.

I no longer actively maintain this repository for future TF versions. This bug stemmed from 2.4's change of train_step logic, which see_rnn utilized in get_gradients. The fix involves updating this logic per code here; anyone willing is free to open a PR.

I might address this eventually, but not anytime soon.

@OverLordGoldDragon OverLordGoldDragon added bug Something isn't working TF2.4+ labels Jan 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working TF2.4+
Projects
None yet
Development

No branches or pull requests

2 participants