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

self.add_update((self.centers,new_centers),x) deprecated in TF2.0 #1

Open
suraj-maniyar opened this issue Mar 7, 2020 · 0 comments

Comments

@suraj-maniyar
Copy link

Hi mjDelta,

Thanks for the code. I am trying to implement center-loss in Tensorflow 2.0 and found that some arguments in self.add_update are deprecated. It does not throw any error, but the centers are never updated.
You can find the description here:
https://github.com/tensorflow/tensorflow/blob/v2.1.0/tensorflow/python/keras/engine/base_layer.py#L1170-L1259

Can you provide a work around for this?

Thank you

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