2.3K Star 8.1K Fork 4.3K

GVPMindSpore / mindspore

 / 详情

【易用性改进】【EI】 Gather算子index越界后报task exception。虽提示报错行,但报错需要用户有经验才能找到根因。需改进报错信息

TODO
Bug-Report 成员
创建于  
2023-06-28 15:48
name about labels
Bug Report Use this template for reporting a bug kind/bug

Describe the current behavior / 问题描述 (Mandatory / 必填)

In file /home/ma-user/modelarts/user-job-dir/pangu_ock/src/model/pangu_embedding.py:36/ output = self.gather(embedding_table, input_ids, 0)/
In file /home/ma-user/modelarts/user-job-dir/pangu_ock/src/model/pangu_embedding.py:110/ words_embeddings = self.word_embeddings(input_ids, embedding_table)/
In file /home/ma-user/modelarts/user-job-dir/pangu_ock/src/model/bical_model.py:28/ src_embedding_output = self.pangu_embedding(input_ids, self.embedding_table, self.position_embedding_table,/
In file /home/ma-user/modelarts/user-job-dir/pangu_ock/src/model/bical_model.py:57/ logits = self.network(input_ids, input_position, decoder_attention_masks, tokentype_ids) # [b*seq_len, vocab_size]/
In file /home/ma-user/modelarts/user-job-dir/pangu_ock/src/pangu_wrapcell.py:318/ total_loss, per_exam_loss, label_weights = self.network(*micro_input)/
In file /nfs_wulan/mindspore_pkgs/ms2.0_20230621_ylh_load_model/mindspore/nn/wrap/cell_wrapper.py:466/ return self._backbone(*output)/
In file /home/ma-user/modelarts/user-job-dir/pangu_ock/src/pangu_wrapcell.py:633/ loss, mlm_loss, gen_loss, sup_loss, unsup_loss = self.network(*inputs)/
In file /nfs_wulan/mindspore_pkgs/ms2.0_20230621_ylh_load_model/mindspore/train/dataset_helper.py:101/ return self.network(*outputs)/

Environment / 环境信息 (Mandatory / 必填)

  • Hardware Environment(Ascend/GPU/CPU) / 硬件环境:

Please delete the backend not involved / 请删除不涉及的后端:
/device ascend/GPU/CPU/kirin/等其他芯片

  • Software Environment / 软件环境 (Mandatory / 必填):
    -- MindSpore version (e.g., 1.7.0.Bxxx) :
    -- Python version (e.g., Python 3.7.5) :
    -- OS platform and distribution (e.g., Linux Ubuntu 16.04):
    -- GCC/Compiler version (if compiled from source):

  • Excute Mode / 执行模式 (Mandatory / 必填)(PyNative/Graph):

Please delete the mode not involved / 请删除不涉及的模式:
/mode pynative
/mode graph

Related testcase / 关联用例 (Mandatory / 必填)

可构建Gather算子单算子用例,构建index越界场景即可复现

Steps to reproduce the issue / 重现步骤 (Mandatory / 必填)

Describe the expected behavior / 预期结果 (Mandatory / 必填)

Related log / screenshot / 日志 / 截图 (Mandatory / 必填)

Special notes for this issue/备注 (Optional / 选填)

评论 (2)

qujianwei 创建了Bug-Report

Please assign maintainer to check this issue.
请为此issue分配处理人。
@qujianwei

Please add labels (comp or sig), also you can visit https://gitee.com/mindspore/community/blob/master/sigs/dx/docs/labels.md to find more.
为了让代码尽快被审核,请您为Pull Request打上 组件(comp)或兴趣组(sig) 标签,打上标签的PR可直接推送给责任人进行审核。
更多的标签可以查看https://gitee.com/mindspore/community/blob/master/sigs/dx/docs/labels.md
以组件相关代码提交为例,如果你提交的是data组件代码,你可以这样评论:
//comp/data
当然你也可以邀请data SIG组来审核代码,可以这样写:
//sig/data
另外你还可以给这个PR标记类型,例如是bugfix或者是特性需求:
//kind/bug or //kind/feature
恭喜你,你已经学会了使用命令来打标签,接下来就在下面的评论里打上标签吧!

qujianwei 修改了标题
qujianwei 修改了描述

登录 后才可以发表评论

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

搜索帮助