已合并
删除冗余头文件,替换自制工具类里的GET接口,直接使用TensorApi提供的AscendC::Te::Get功能 #242
chen-shuai创建于 5月13日
删除冗余头文件,替换自制工具类里的GET接口,直接使用TensorApi提供的AscendC::Te::Get功能 #242
已合并
Pull Request已成功合入, 合并人@CANN-robot
(感谢 chen-shuai 的贡献)5月13日 创建了 pull request,commit dfed4201
CANN-robot
5月13日 评论:
5月13日 评论:
Thanks for your pull-request.
The full list of commands accepted by me can be found at here。
You can get sig-info at here
PR Approval Progress
✅ Congratulations! All modules have met the lgtm and approve requirements.
Module Approval Details
| module | lgtm status | approve status |
|---|---|---|
| repo-cann/cann-samples | ✅ zhangzijie, 杨阳 (2/2) | ✅ zhangzijie, 杨阳 (2/1) |
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)
CLA Signature Pass
chen-shuai, thanks for your pull request. All authors of the commits have signed the CLA. 👍


5月13日 将yangyang016,zhangzijie,llimwang设为评审人
5月13日 添加了label:cann-cla/yes
5月13日 将yangyang016,zhangzijie,llimwang设为审查人
此处折叠了55条消息 查看更多
5月14日 添加了label:lgtm
CANN-robot
5月14日 评论:
5月14日 评论:
Review Guide
This pull-request passes review.
Committers who wrote a comment of /approve are: zhangzijie, 杨阳.
Reviewers who wrote a comment of /lgtm are: zhangzijie, 杨阳.


5月14日 关闭了关联的issue
5月14日 合入了pull request
5月14日 修改了pull request 的描述
描述
修复 issue110,适配最新 Tensor API 接口,清理 matmul / grouped matmul 样例中重复维护的本地 tuple/layout 工具代码。
更新
third_party/tensor_api删除本地重复工具头文件:
integral_constant.htuple_utils.h将自定义 tuple 访问方式替换为 Tensor API / AscendC 标准接口:
Get<IDX>(...)->AscendC::Te::Get<IDX>(...)AscendC::Std::get<IDX>(...)重构
layout_utils.h:删除layout_utils.h里的高阶API依赖layout::RowMajor/layout::ColumnMajorNDExtLayoutPtnDNExtLayoutPtnNZLayoutPtnZNLayoutPtnIsTrans/IsWeightNz判断逻辑调整相关 matmul recipes、matmul tutorials、grouped matmul recipes 中的 include 和类型工具使用方式。
关联的Issue
https://gitcode.com/cann/cann-samples/issues/110
测试
matmul recipes、matmul tutorials、grouped matmul recipes 下的sample 精度pass
文档更新
不涉及
类型标签