<p dir="auto">This is the issue in Tensorflow <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="936962718" data-permission-text="Title is private" data-url="https://github.com/tensorflow/tensorflow/issues/50612" data-hovercard-type="issue" data-hovercard-url="/tensorflow/tensorflow/issues/50612/hovercard" href="https://github.com/tensorflow/tensorflow/issues/50612">tensorflow/tensorflow#50612</a></p>
<p dir="auto">And this is my PR <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="947914332" data-permission-text="Title is private" data-url="https://github.com/tensorflow/tensorflow/issues/50844" data-hovercard-type="pull_request" data-hovercard-url="/tensorflow/tensorflow/pull/50844/hovercard" href="https://github.com/tensorflow/tensorflow/pull/50844">tensorflow/tensorflow#50844</a></p>
<p dir="auto">Now the issues of keras are done here. If it's necessary I can duplicate the issue here.</p>
<p dir="auto">I am getting unexpected behaviour when using mean_squared_error loss.</p>
<p dir="auto">My original issue was that fit_generator was reporting an incorrect validation loss. I was unable to reproduce that bug in a gist that I can make public, but I was able to demonstrate an incorrect training loss.</p>
<p dir="auto">Bafflingly, if I change max_queue_size to 1 instead of the default 10 in fit_generator, the issue is resolved.</p>
<p dir="auto"><a href="https://gist.github.com/alekseynp/1bb6cbe4ee7fb6e8ea46d68c675b934d">https://gist.github.com/alekseynp/1bb6cbe4ee7fb6e8ea46d68c675b934d</a></p>