torch_npu.profiler 接口适配
将 torch_npu.profiler 采集接口适配到 AI 框架或训练/推理代码中,采集 NPU 算子、kernel 及内存等性能数据。按以下三步完成,每步向用户确认后继续。
第一步:`torch_npu.profiler` 先验知识
torch_npu.profiler 是昇腾 NPU 平台上的性能分析工具,用于采集 PyTorch 训练或在线推理场景中的 PyTorch 算子、CANN 算子、底层 NPU 算子及内存占用等性能数据。
Ascend profiler collect adaption is an AI agent skill from the GitHub repository kali20gakki/msAgent. Adapt torch_npu.profiler interface for AI frameworks and training/inference code on Ascend NPU. Use this skill whenever users need to integrate profiling, add performance data collection, or instrument PyTorch code with torch_npu.profiler on Huawei Ascend NPU platforms. Triggers on: "torch_npu profi
.claude/skills/ascend-profiler-collect-adaption/SKILL.md.cursor/rules/ascend-profiler-collect-adaption.md.agents/skills/ascend-profiler-collect-adaption/SKILL.md