2.4K Star 8.2K Fork 4.4K

GVPMindSpore / mindspore

 / 详情

[MDT][MS][Profiler]pynative模式下,profiler收集不到unique与reshape算子信息

REJECTED
Bug-Report 成员
创建于  
2023-08-02 10:00
name about labels
Bug Report Use this template for reporting a bug kind/bug

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

使用动态shape网络dynamic_shape_with_heterogeneity.py,使用pynative模式收集profiler信息,没有unique与reshape的算子信息;graph模式可以收集到

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

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

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

  • Software Environment / 软件环境 (Mandatory / 必填):
    -- MindSpore version (e.g., 1.7.0.Bxxx) :MS-2.1.0-0801
    commit_id = '[sha1]:3d9e2674,[branch]:(HEAD,origin/r2.0,r2.0)'
    -- Python version (e.g., Python 3.7.5) :py375
    -- OS platform and distribution (e.g., Linux Ubuntu 16.04):Linux Ubuntu
    -- GCC/Compiler version (if compiled from source):
    Linux version 3.10.0-862.14.1.5.h442.eulerosv2r7.x86_64 (abuild@szxrtosci10000) (gcc version 4.8.5 20150623 (EulerOS 4.8.5-28) (GCC) ) #1 SMP Fri May 15 22:01:58 UTC 2020

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

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

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

test_profiler_dynamic_shape_with_heterogeneity_ascend
test_script_dynamic_shape_with_heterogeneity_ascend

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

  1. 使用脚本dynamic_shape_with_heterogeneity.py
  2. 设置为pynative模式
  3. 收集profiler数据,检查profiler收集的算子信息

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

pynative可以收集到unique与reshape算子信息

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

pynative:op_type total_time execution_frequency percent
add 0.00279 1 1
graph:op_type total_time execution_frequency percent
add 0.00294 1 0.004442
Reshape 0.25927 1 0.391759
Unique 0.3996 1 0.603799

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

评论 (3)

韩顺平 创建了Bug-Report
韩顺平 添加了
 
kind/bug
标签
韩顺平 添加了
 
stage/func-debug
标签
韩顺平 添加了
 
sig/visualization
标签
韩顺平 添加了
 
v2.2.0
标签
韩顺平 添加了
 
attr/function
标签
展开全部操作日志

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

感谢您的反馈,您可以评论//mindspore-assistant更快获取帮助,更多标签可以查看标签列表

  1. 如果您刚刚接触MindSpore,或许您可以在教程找到答案
  2. 如果您是资深Pytorch用户,您或许需要:
    与PyTorch典型区别 / PyTorch与MindSpore API映射表
  3. 如果您遇到动态图问题,可以设置mindspore.set_context(pynative_synchronize=True)查看报错栈协助定位
  4. 模型精度调优问题可参考官网调优指南
  5. 如果您反馈的是框架BUG,请确认您在ISSUE中提供了MindSpore版本、使用的后端类型(CPU、GPU、Ascend)、环境、训练的代码官方链接以及可以复现报错的代码的启动方式等必要的定位信息
  6. 如果您已经定位出问题根因,欢迎提交PR参与MindSpore开源社区,我们会尽快review
zangqx 添加协作者zangqx
zangqx 负责人zangqx 修改为jijiarong
zangqx 负责人jijiarong 修改为朱家兴
zangqx 添加协作者jijiarong
zangqx 取消协作者zangqx
zangqx 取消协作者jijiarong
zangqx 负责人朱家兴 修改为未设置
zangqx 添加协作者朱家兴
zangqx 负责人设置为朱家兴
zangqx 取消协作者朱家兴

pynative模式下 unique和reshape 会被优化执行memcpy,此时算子不会被下发到kernel, 所以为正常现象

朱家兴 任务状态TODO 修改为VALIDATION
朱家兴 里程碑B-SIG-Visualization 修改为B-MDT
朱家兴 添加协作者朱家兴
朱家兴 负责人朱家兴 修改为韩顺平
朱家兴 任务状态VALIDATION 修改为REJECTED

登录 后才可以发表评论

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

搜索帮助

344bd9b3 5694891 D2dac590 5694891