Uh oh!
There was an error while loading. Please reload this page.
Update addition example's python code for tf2.5 - #307
Conversation
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed (or fixed any issues), please reply here with What to do if you already signed the CLAIndividual signers
Corporate signers
ℹ️ Googlers: Go here for more info. |
dskkato
commented
Jul 10, 2021
@googlebot I signed it! |
adamcrume
commented
Jul 15, 2021
Thanks for the update! This looks good to me. I think it's fine if the examples require TensorFlow 2, since that's what the library is now targeting. |
ptitfred
commented
Jul 2, 2024
Please note that when ran as advertised (in the |
I tried to migrate Python code using TensorFlow 2.x version.
In TensorFlow 2.x, the eager mode is ON by default, which makes it hard to get a concrete computation graph. One way to obtain a similar result is to wrap the function and use
get_concrete_functionmethod like in this PR.Please refer to TF documents for detail : https://www.tensorflow.org/guide/function
I also tried to change outputs node name (which isPlease note that this PR makes theIdentitynow), for compatibility, but could not find any solution regarding to this point.additionexample totally incompatible with TensorFlow 1.x versions.I'm glad to take any feedback. And if you already working on this point in a different way, please let it go.