name | about | labels |
---|---|---|
Bug Report | Use this template for reporting a bug | kind/bug |
1.rewrite修复父类和子类同名场景的语法解析问题
2.rewrite修复staticmethod语法解析异常问题
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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
感谢您的提问,您可以评论//mindspore-assistant更快获取帮助:
未覆盖此场景 需补充用例进行看护
rewrite特定语法场景 解析能力欠缺导致报错
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
回归时间: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
回归结果:
回归结论:
回归通过
登录 后才可以发表评论