提交 88c32a6f 编写于 作者: M mindspore-ci-bot 提交者: Gitee

!828 Add reduce mean in SoftmaxCrossEntroyWithLogits in Resnet50 example

Merge pull request !828 from gengdongjie/r0.2
......@@ -68,7 +68,7 @@ if __name__ == '__main__':
epoch_size = config.epoch_size
net = resnet50(class_num=config.class_num)
loss = SoftmaxCrossEntropyWithLogits(sparse=True)
loss = SoftmaxCrossEntropyWithLogits(sparse=True, reduction="mean")
if args_opt.do_train:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册