-
Notifications
You must be signed in to change notification settings - Fork 19.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Help!!! The different result between train_on_batch() and test_on_batch() with the same data #6876
Comments
output:
|
thanks. BN and Dropout layers are both on my model. Thanks very much. @t-ae |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 30 days if no further activity occurs, but feel free to re-open a closed issue if needed. |
While running the code of t-ae, I realized that the two outputs of
are the same even with |
@flotinou Keras does output the loss before training. It represents the quantity it has used to compute the gradient on the parameters. If you do test_on_batch again right after train_on_batch you should normally see the loss dropping. If you set |
Hi,
I get the different result by the two functions named "train_on_batch" and "test_on_batch" feed with the same data accidentally. And each layer.trainable was set by 'False'. the don't know why. the details as follows:
1. load trained model, by follow code.
2. use the two functions get results feed with the same data.
3. it's info printed as follows:
Can anyone explain it. Thanks.
The text was updated successfully, but these errors were encountered: