In the sample one of this tutorial, it use tensorflow 1.0. I want implement that code in the tensorflow 2.0.
there is two part of code: