Skip to content
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

loss的计算 #1

Open
yyHaker opened this issue Apr 26, 2018 · 1 comment
Open

loss的计算 #1

yyHaker opened this issue Apr 26, 2018 · 1 comment

Comments

@yyHaker
Copy link

yyHaker commented Apr 26, 2018

screenshot from 2018-04-26 16-03-16

screenshot from 2018-04-26 15-58-05

既然喂给网络一个batch的数据,计算的不应该是一个batch的损失吗?为什么后面计算平均损失的时候需要再乘以batch_size?

@Site1997
Copy link

@yyHaker I agree with you,maybe he intended to use "tf.reduce_mean" instead of "tf.reduce_sum"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants