1.6K Star 6K Fork 2.3K

GVPMindSpore / mindspore

 / 详情

[CI] ST failed in daily version<test_tesnsor_augassign_by_ellipsis>

DONE
Bug-Report member
Opened this issue  
2021-10-22 10:44
name about labels
Bug Report Use this template for reporting a bug kind/bug

Environment

  • Hardware Environment(Ascend/GPU/CPU):

Uncomment only one /device <> line, hit enter to put that in a new line, and remove leading whitespaces from that line:

/device ascend

  • Software Environment:
    -- MindSpore version (source or binary): master commit_id = a7bff87bbb38a3ddb39c94879544e147a214d2f7
    -- 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):

Related testcase

test_tensor_augassign.py::test_tesnsor_augassign_by_ellipsis

Steps to reproduce the issue

  1. code compile
  2. install mindspore*.whl
  3. run testcase

Describe the current behavior

The test case failed and version of daily build failed

Describe the expected behavior

The test case do failed

Related log / screenshot

URL:https://build.mindspore.cn/blue/organizations/jenkins/MindSpore_Gitee_Version/detail/MindSpore_Gitee_Version/2606/pipeline/774
输入图片说明
输入图片说明
输入图片说明

Special notes for this issue

test_tesnsor_augassign_by_ellipsis用例失败,导致版本构建失败

Comments (10)

wmzheng2020 createdBug-Report
wmzheng2020 added
 
attr/function
label
wmzheng2020 added
 
kind/bug
label
wmzheng2020 assigned collaborator Payne
Expand operation logs

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.
为了让问题更快得到响应,请您为该issue打上 组件(comp)或兴趣组(sig) 标签,打上标签的问题可以直接推送给责任人进行处理。更多的标签可以查看
https://gitee.com/mindspore/community/blob/master/sigs/dx/docs/labels.md
以组件问题为例,如果你发现问题是data组件造成的,你可以这样评论:
//comp/data
当然你也可以向data SIG组求助,可以这样写:
//comp/data
//sig/data
如果是一个简单的问题,你可以留给刚进入社区的小伙伴来回答,这时候你可以这样写:
//good-first-issue
恭喜你,你已经学会了使用命令来打标签,接下来就在下面的评论里打上标签吧!

wangnan39 unassigned collaborator Payne
wangnan39 assigned collaborator wangnan39
wangnan39 changed assignee from wangnan39 to liuyang
liuyang changed deadline from 2021-10-27 to 2021-10-30
liuyang changed issue state from TODO to ACCEPTED

定位到pr https://e.gitee.com/mind_spore/repos/mindspore/mindspore/pulls/25129 合入引入的问题。
输入图片说明
多层索引赋值时递归调用__setitem__(),超过python指定最大递归调用栈深度报错。

liuyang assigned collaborator liuyang
liuyang changed assignee from liuyang to zhangzhaoju
liuyang changed milestone from B-SIG-FrontEnd to B-SIG-Compiler

根因分析:
在getitem时,若index为'...'则tensor_operator_registry.get('getitem')(self, index) 返回值为self
此时设置out为当前Tensor的parent,将导致self的parent为self,出现循环指向。
解决方案:
在为Tensor设置parent前增加检查,确保parent不是自己

已提交PR:https://e.gitee.com/mind_spore/repos/mindspore/mindspore/pulls/25629 进行问题修复

    def __getitem__(self, index):
        out = tensor_operator_registry.get('__getitem__')(self, index)
        if out is not self:
            out.parent_tensor_ = self
            out.index_of_parent_ = index
        return out

本问题单1.5不存在
Tensor连续索引赋值未合入1.5
Tensor[1][1][1]=88.0

zhangzhaoju translation missing: en.project.new_issues_operate_log.link_issue(Normal)Tensor支持多层索引赋值
zhangzhaoju changed issue state from ACCEPTED to VALIDATION
zhangzhaoju assigned collaborator zhangzhaoju
zhangzhaoju changed assignee from zhangzhaoju to wmzheng2020
zhangzhaoju changed milestone from B-SIG-Compiler to B-SolutionTest
回归时间:2021.11.01
回归版本:master commit_id =  3452d6e55def7f9abedbd97a478866cbe3ab0b91
回归步骤:1、代码下载;2、代码编译;3、whl包安装;4、运行用例;
回归结果:用例通过
回归结论:回归通过

输入图片说明

wmzheng2020 changed issue state from VALIDATION to DONE
wmzheng2020 unassigned collaborator wangnan39
wmzheng2020 unassigned collaborator liuyang
wmzheng2020 unassigned collaborator zhangzhaoju
wmzheng2020 assigned collaborator baihuawei

Sign in to comment

Status
Assignees
Projects
Milestones
Pull Requests
Successfully merging a pull request will close this issue.
Branches
Planed to start   -   Planed to end
-
Top level
Priority
Duration (hours)
Confirm
参与者(5)
Python
1
https://git.oschina.net/mindspore/mindspore.git
git@git.oschina.net:mindspore/mindspore.git
mindspore
mindspore
mindspore

Search