2.4K Star 8.2K Fork 4.4K

GVPMindSpore / mindspore

 / 详情

[CT][MS][rewrite]父子类同名场景及staticmethod语法解析异常

DONE
Bug-Report 成员
创建于  
2024-05-20 10:14
name about labels
Bug Report Use this template for reporting a bug kind/bug

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

1.rewrite修复父类和子类同名场景的语法解析问题
2.rewrite修复staticmethod语法解析异常问题

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

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

Please delete the backend not involved / 请删除不涉及的后端:
/device ascend/GPU/CPU

  • Software Environment / 软件环境 (Mandatory / 必填):
    -- MindSpore version (e.g., 2.1.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 / 必填)

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

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

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

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

评论 (5)

杜冯泱 创建了Bug-Report
杜冯泱 复制于任务 I7F1LI
杜冯泱 添加了
 
kind/bug
标签
杜冯泱 添加了
 
v2.1.0
标签
杜冯泱 添加了
 
sig/frontend
标签
杜冯泱 添加了
 
rct/bugfix
标签
杜冯泱 添加了
 
rca/codelogic
标签
杜冯泱 添加了
 
ctl/codereview
标签
杜冯泱 添加了
 
foruda
标签
杜冯泱 添加协作者GuoZhibin
展开全部操作日志

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

感谢您的提问,您可以评论//mindspore-assistant更快获取帮助:

  1. 如果您刚刚接触MindSpore,或许您可以在教程找到答案
  2. 如果您是资深Pytorch用户,您或许需要:
  1. 如果您遇到动态图问题,可以设置set_context(pynative_synchronize=True)查看报错栈协助定位
  2. 模型精度调优问题可参考官网调优指南
  3. 如果您反馈的是框架BUG,请确认您在ISSUE中提供了MindSpore版本、使用的后端类型(CPU、GPU、Ascend)、环境、训练的代码官方链接以及可以复现报错的代码的启动方式等必要的定位信息
  4. 如果您已经定位出问题根因,欢迎提交PR参与MindSpore开源社区,我们会尽快review
杜冯泱 移除了
 
v2.1.0
标签
杜冯泱 移除了
 
v2.1.0
标签
杜冯泱 添加了
 
v2.1.0
标签
杜冯泱 移除了
 
rca/codelogic
标签
杜冯泱 移除了
 
v2.1.0
标签
杜冯泱 移除了
 
rca/codelogic
标签
杜冯泱 移除了
 
v2.1.0
标签
杜冯泱 移除了
 
ctl/codereview
标签
杜冯泱 移除了
 
ctl/codereview
标签
杜冯泱 移除了
 
foruda
标签
杜冯泱 移除了
 
foruda
标签
杜冯泱 移除了
 
rct/bugfix
标签
杜冯泱 移除了
 
rct/bugfix
标签
杜冯泱 添加了
 
rct/bugfix
标签
杜冯泱 移除了
 
rct/bugfix
标签
杜冯泱 添加了
 
v2.3.0
标签
杜冯泱 添加了
 
master
标签
杜冯泱 里程碑B-ComponentTest 修改为B-SIG-FrontEnd
杜冯泱 修改了描述
杜冯泱 添加协作者杜冯泱
杜冯泱 负责人杜冯泱 修改为GuoZhibin
杜冯泱 取消协作者GuoZhibin
杜冯泱 计划开始日期2023-06-20 修改为2024-05-20
杜冯泱 计划截止日期2023-07-21 修改为2024-05-27

未覆盖此场景 需补充用例进行看护

Appearance & Root Cause

rewrite特定语法场景 解析能力欠缺导致报错

Fix Solution

rewrite完善相关场景语法解析能力

PR链接:
!69509:rewrite修复父类和子类同名场景的语法解析问题
rewrite修复父类和子类同名场景的语法解析问题
!69519:rewrite修复staticmethod语法解析异常问题
rewrite修复staticmethod语法解析异常问题

是否需要补充ST/UT:是
用例文件:
tests/st/rewrite/test_father_class.py
tests/ut/python/rewrite/test_call_function.py
用例名:
test_father_class_with_repeat_name
test_staticmethod_func

i-robot 添加了
 
gitee
标签
i-robot 添加了
 
gitee
标签
GuoZhibin 任务状态TODO 修改为VALIDATION
GuoZhibin 添加协作者GuoZhibin
GuoZhibin 负责人GuoZhibin 修改为杜冯泱
GuoZhibin 取消协作者杜冯泱
GuoZhibin 添加了
 
rca/codelogic
标签
GuoZhibin 添加了
 
ctl/codereview
标签
GuoZhibin 添加了
 
rct/bugfix
标签
GuoZhibin 里程碑B-SIG-FrontEnd 修改为B-ComponentTest

回归时间:2024.5.22
回归版本: commit_id_ = '[sha1]:108dc9c0,[branch]:(HEAD,origin/master,origin/HEAD,master)'
回归步骤:
1.pytest -s -v --disable-warnings quantization/test_rewrite_3.py::test_father_class_007

回归结果:
输入图片说明
回归结论:
回归通过

i-robot 添加了
 
foruda
标签
杜冯泱 任务状态VALIDATION 修改为DONE

登录 后才可以发表评论

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

搜索帮助