Coder Social home page Coder Social logo

Comments (7)

Aloqeely avatar Aloqeely commented on April 27, 2024

Hey! For issues related to general coding questions, stackoverflow is a great resource, this issue tracker is primarily for bugs that directly impact the project

Maybe this post on stackoverflow helps: https://stackoverflow.com/questions/63364588/unboundlocalerror-local-variable-batch-outputs-referenced-before-assignment
If it doesn't solve your problem, feel free to reply back and I will try my best to help you

from tensorflow.

tilakrayal avatar tilakrayal commented on April 27, 2024

@Roych13,
We see that you are using tf version 1.14, 1.x is not actively supported, please update to 2.x and let us know if you are facing the same issue. Could you please provide the complete code to reproduce the issue.

Also the batch size is the number of samples in each batch. Each batch process is referred to as one step and An epoch is completed when all the data in the training set is used for training. The smaller the batch_size is, the larger number of batches is processed per one epoch.

The ideal combination of epochs and batch size depends on your specific dataset, model architecture, and computational resources. Also better way is to start from smaller batches to find wide and plain minima, which are better from the generalization point of view, and then increase batch size for steadier convergence. Thank you!

from tensorflow.

github-actions avatar github-actions commented on April 27, 2024

This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you.

from tensorflow.

svkgn4DL avatar svkgn4DL commented on April 27, 2024

Hi @Roych13 ,

UnboundLocalError: local variable 'batch_index' referenced before assignment

In general the above error arises when you are using a variable (here eg. "batch_index") passed as argument or assigning to some other variable before actually assigning a value to it. Search if your code have batch_index anywhere and check whetehr it is instantiated before using somewhere else.

from tensorflow.

github-actions avatar github-actions commented on April 27, 2024

This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you.

from tensorflow.

github-actions avatar github-actions commented on April 27, 2024

This issue was closed because it has been inactive for 7 days since being marked as stale. Please reopen if you'd like to work on this further.

from tensorflow.

google-ml-butler avatar google-ml-butler commented on April 27, 2024

Are you satisfied with the resolution of your issue?
Yes
No

from tensorflow.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.