Browse Source

!828 Add reduce mean in SoftmaxCrossEntroyWithLogits in Resnet50 example

Merge pull request !828 from gengdongjie/r0.2
tags/v0.2.0-alpha
mindspore-ci-bot Gitee 6 years ago
parent
commit
88c32a6f4d
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      example/resnet50_cifar10/train.py

+ 1
- 1
example/resnet50_cifar10/train.py View File

@@ -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:


Loading…
Cancel
Save