You can't use Keras optimizers in tf.keras with eager execution enabled. The worst part is that I lose control over my optimizer now and can't change things like LR in between the epochs. Come on guys! Keras is love, please don't ruin it. @TensorFlow
-
-
Replying to @A_K_Nain @TensorFlow
Greetings! Could you please file a short issue w/ a code snippet that shows what you'd like to do? Important to me to make tf.keras work :) Various examples here in case any of them are helpful (as a first suggestion, you could write a training loop w/ gradient tape):
2 replies 0 retweets 8 likes -
Replying to @random_forests @TensorFlow
Thank you Josh for noticing this. I already filed an issue. Here is the link:https://github.com/tensorflow/tensorflow/issues/23314 …
1 reply 0 retweets 1 like -
If you want a more verbose example, do let me know. I can do that as well. Thanks
1 reply 0 retweets 0 likes -
Replying to @A_K_Nain @TensorFlow
Here's a quick example showing how to set the LR using the gradient tape style https://colab.research.google.com/drive/10OIcUdwRiHbQK4p32MEABG_G4_D44YKH … This prob isn't quite what you need - yeah, please add a more verbose snippet showing the way you'd like it to work, and we'll check it out.
1 reply 0 retweets 5 likes -
Replying to @random_forests @TensorFlow
Awesome. Appreciate the quick response. Thank you very much. I will look into it and I will also add a more verbose code snippet for your reference
1 reply 0 retweets 3 likes -
Here is what I need actually:https://colab.research.google.com/drive/1I-vvsD4zhBUxcMh6LEadqUOF9sVgHy2T …
1 reply 0 retweets 0 likes -
This approach is more preferable because everything is a part of your model. Though, I see no harm in using gradient tape but people who would be switching from Keras to tf.keras and eager would want that IMO
1 reply 0 retweets 0 likes
We'll be merging the TF optimizers and Keras optimizers in TF 2.0, so they will have the same features and capabilities. This should ship soon
-
-
Great. Thanks
@fchollet
1 reply 0 retweets 0 likes -
making people work and respond... thanks !!
0 replies 0 retweets 3 likes
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.