2.4K Star 8.2K Fork 4.4K

GVPMindSpore / mindspore

 / 详情

delete SoftmaxCrossEntropyExpand interface

DONE
RFC
创建于  
2020-09-21 15:51
name about labels
RFC Use this template for the new feature or enhancement kind/feature or kind/enhancement

Background

the interface is same as softmaxcrossentropywithlogits.

Introduction

It is an unnecessary interface

    def __init__(self, sparse=False):
        super(SoftmaxCrossEntropyExpand, self).__init__()
        self.exp = P.Exp()
        self.reduce_sum = P.ReduceSum(keep_dims=True)
        self.onehot = P.OneHot()
        self.on_value = Tensor(1.0, mstype.float32)
        self.off_value = Tensor(0.0, mstype.float32)
        self.div = P.Div()
        self.log = P.Log()
        self.sum_cross_entropy = P.ReduceSum(keep_dims=False)
        self.mul = P.Mul()
        self.mul2 = P.Mul()
        self.cast = P.Cast()
        self.reduce_mean = P.ReduceMean(keep_dims=False)
        self.sparse = sparse
        self.reduce_max = P.ReduceMax(keep_dims=True)
        self.sub = P.Sub()

Trail

No. Task Description Related Issue(URL)
1
2

评论 (1)

ghzl 创建了Requirement
ghzl 关联仓库设置为MindSpore/mindspore
展开全部操作日志

Hey guohonhzilonghw, Welcome to MindSpore Community.
All of the projects in MindSpore Community are maintained by @mindspore-ci-bot.
That means the developers can comment below every pull request or issue to trigger Bot Commands.
Please follow instructions at https://gitee.com/mindspore/community/blob/master/command.md to find the details.

ghzl 任务类型Requirement 修改为RFC
ghzl 修改了描述
ghzl 负责人设置为ghzl
ghzl 修改了描述
ghzl 任务状态TODO 修改为DONE

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(2)
5518576 mindspore ci 1587902139
Python
1
https://gitee.com/mindspore/mindspore.git
git@gitee.com:mindspore/mindspore.git
mindspore
mindspore
mindspore

搜索帮助