forked from huawei/mindspore2022
!828 Add reduce mean in SoftmaxCrossEntroyWithLogits in Resnet50 example
Merge pull request !828 from gengdongjie/r0.2
This commit is contained in:
commit
88c32a6f4d
|
|
@ -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…
Reference in New Issue