Is there a replacement for global_step in TensorFlow 2.0?How to get hold of graph from tf.function in tensorflow 2.0?How can I list all variables in Tensorflow 2.0tensorflow 2.0, variable_scope(), TypeError: __call__() got an unexpected keyword argument 'partition_info'Tensorflow 2.0 - AttributeError: module 'tensorflow' has no attribute 'Session'Tensorflow 2.0 and image processingHow to control verbosity in TensorFlow 2.0Tensorflow 2.0 Keras is training 4x slower than 2.0 EstimatorIn TensorFlow 2.0: Training error with optimizer.apply_gradientsHow to save and load selected variables in tensorflow 2.0?How to do weight initialization by Xavier rule in Tensorflow 2.0?

Are there any satellites in geosynchronous but not geostationary orbits?

Why isn't a binary file shown as 0s and 1s?

Why do jet engines sound louder on the ground than inside the aircraft?

Why is Google approaching my VPS machine?

Align the contents of a numerical matrix when you have minus signs

Did Hitler say this quote about homeschooling?

Don't individual signal sources affect each other when using a summing amplifier?

How did J. J. Thomson establish the particle nature of the electron?

Wait or be waiting?

Could a US citizen born through "birth tourism" become President?

Diagram of Methods to Solve Differential Equations

How can I help our ranger feel special about her beast companion?

Does 5e follow the Primary Source rule?

Locked-up DOS computer beeped on keypress. What mechanism caused that?

Should I have one hand on the throttle during engine ignition?

When will the last unambiguous evidence of mankind disappear?

How to tell readers that I know my story is factually incorrect?

What is actually sent/loaded to a microcontroller / stm32

Null expletive objects in Latin? "Cariotae cum ficis certandum habent" (Plin. Ep. 1,8)

What's a German word for »Sandbagger«?

Is it legal for a supermarket to refuse to sell an adult beer if an adult with them doesn’t have their ID?

Inscriptio Labyrinthica

Operation Unzalgo

"Je suis petite, moi?", purpose of the "moi"?



Is there a replacement for global_step in TensorFlow 2.0?


How to get hold of graph from tf.function in tensorflow 2.0?How can I list all variables in Tensorflow 2.0tensorflow 2.0, variable_scope(), TypeError: __call__() got an unexpected keyword argument 'partition_info'Tensorflow 2.0 - AttributeError: module 'tensorflow' has no attribute 'Session'Tensorflow 2.0 and image processingHow to control verbosity in TensorFlow 2.0Tensorflow 2.0 Keras is training 4x slower than 2.0 EstimatorIn TensorFlow 2.0: Training error with optimizer.apply_gradientsHow to save and load selected variables in tensorflow 2.0?How to do weight initialization by Xavier rule in Tensorflow 2.0?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








1















It seems like global_step is missing from TensorFlow 2.0.



I have several callbacks that are interested in current training progress and I'm not sure if I need to implement my own step counter or depend on epochs count instead...



Any recommendations for replacement?










share|improve this question




























    1















    It seems like global_step is missing from TensorFlow 2.0.



    I have several callbacks that are interested in current training progress and I'm not sure if I need to implement my own step counter or depend on epochs count instead...



    Any recommendations for replacement?










    share|improve this question
























      1












      1








      1








      It seems like global_step is missing from TensorFlow 2.0.



      I have several callbacks that are interested in current training progress and I'm not sure if I need to implement my own step counter or depend on epochs count instead...



      Any recommendations for replacement?










      share|improve this question














      It seems like global_step is missing from TensorFlow 2.0.



      I have several callbacks that are interested in current training progress and I'm not sure if I need to implement my own step counter or depend on epochs count instead...



      Any recommendations for replacement?







      tensorflow2.0






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 26 at 10:48









      Ohad MeirOhad Meir

      3602 silver badges13 bronze badges




      3602 silver badges13 bronze badges






















          1 Answer
          1






          active

          oldest

          votes


















          2














          Right now is better to declare our own global_step = tf.Variable(1, name="global_step") and use it manually.



          Looking at the documentation there is not a drop-in replacement for tf.train.get_or_create_global_step and the only part of the documentation that is about a step is the experimental section of the tf.summary module: https://www.tensorflow.org/versions/r2.0/api_docs/python/tf/summary/experimental






          share|improve this answer






















            Your Answer






            StackExchange.ifUsing("editor", function ()
            StackExchange.using("externalEditor", function ()
            StackExchange.using("snippets", function ()
            StackExchange.snippets.init();
            );
            );
            , "code-snippets");

            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "1"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55355292%2fis-there-a-replacement-for-global-step-in-tensorflow-2-0%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            2














            Right now is better to declare our own global_step = tf.Variable(1, name="global_step") and use it manually.



            Looking at the documentation there is not a drop-in replacement for tf.train.get_or_create_global_step and the only part of the documentation that is about a step is the experimental section of the tf.summary module: https://www.tensorflow.org/versions/r2.0/api_docs/python/tf/summary/experimental






            share|improve this answer



























              2














              Right now is better to declare our own global_step = tf.Variable(1, name="global_step") and use it manually.



              Looking at the documentation there is not a drop-in replacement for tf.train.get_or_create_global_step and the only part of the documentation that is about a step is the experimental section of the tf.summary module: https://www.tensorflow.org/versions/r2.0/api_docs/python/tf/summary/experimental






              share|improve this answer

























                2












                2








                2







                Right now is better to declare our own global_step = tf.Variable(1, name="global_step") and use it manually.



                Looking at the documentation there is not a drop-in replacement for tf.train.get_or_create_global_step and the only part of the documentation that is about a step is the experimental section of the tf.summary module: https://www.tensorflow.org/versions/r2.0/api_docs/python/tf/summary/experimental






                share|improve this answer













                Right now is better to declare our own global_step = tf.Variable(1, name="global_step") and use it manually.



                Looking at the documentation there is not a drop-in replacement for tf.train.get_or_create_global_step and the only part of the documentation that is about a step is the experimental section of the tf.summary module: https://www.tensorflow.org/versions/r2.0/api_docs/python/tf/summary/experimental







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Mar 26 at 18:32









                nessunonessuno

                17.2k3 gold badges49 silver badges50 bronze badges




                17.2k3 gold badges49 silver badges50 bronze badges


















                    Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.







                    Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.



















                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Stack Overflow!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55355292%2fis-there-a-replacement-for-global-step-in-tensorflow-2-0%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

                    Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

                    Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript