Skip to content

Conversation

@shun-lin
Copy link
Contributor

@shun-lin shun-lin commented Jan 3, 2020

Quick fix to a bug when using fit_generator
It turns out that when using fit_generator the progress bar is updating by 1 (instead of by batch_size) after each batch, but we still need to keep the number of samples seen to accuracy compute and display the metrics. Therefore I add another field to keep track of steps so far and rename self.seen to self.num_samples_seen for clarity.

Edit: Link to Issue
#812

Copy link
Member

@seanpmorgan seanpmorgan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM thanks for the fix!

@seanpmorgan seanpmorgan merged commit 3dd560c into tensorflow:master Jan 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants