已合并
删除冗余头文件,替换自制工具类里的GET接口,直接使用TensorApi提供的AscendC::Te::Get功能 #242
删除冗余头文件,替换自制工具类里的GET接口,直接使用TensorApi提供的AscendC::Te::Get功能 #242
已合并
chen-shuai创建于 5月13日
chen-shuai成员
5月13日

描述

修复 issue110,适配最新 Tensor API 接口,清理 matmul / grouped matmul 样例中重复维护的本地 tuple/layout 工具代码。

  • 更新 third_party/tensor_api

  • 删除本地重复工具头文件:

    • integral_constant.h
    • tuple_utils.h
  • 将自定义 tuple 访问方式替换为 Tensor API / AscendC 标准接口:

    • Get<IDX>(...) -> AscendC::Te::Get<IDX>(...)
    • tuple 写入场景改为 AscendC::Std::get<IDX>(...)
  • 重构 layout_utils.h:删除layout_utils.h里的高阶API依赖

    • 移除本地 layout::RowMajor / layout::ColumnMajor
    • 改用 Tensor API layout pattern:
      • NDExtLayoutPtn
      • DNExtLayoutPtn
      • NZLayoutPtn
      • ZNLayoutPtn
    • 保留并重写 IsTrans / 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

文档更新

不涉及

类型标签

likedislike
Pull Request已成功合入, 合并人@CANN-robot
(感谢 chen-shuai 的贡献)
Cchen-shuai成员
5月13日 创建了 pull request,commit dfed4201
CANN-robot
CANN-robot成员
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 /approve or /lgtm
  • Commenting /approve implies 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. 👍

likedislike
CANN-robotCANN-robot成员
5月13日 将yangyang016,zhangzijie,llimwang设为评审人
CANN-robotCANN-robot成员
5月13日 添加了label:cann-cla/yes
CANN-robotCANN-robot成员
5月13日 将yangyang016,zhangzijie,llimwang设为审查人
此处折叠了55条消息 查看更多
CANN-robotCANN-robot成员
5月14日 添加了label:lgtm
CANN-robot
CANN-robot成员
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, 杨阳.

likedislike
CANN-robotCANN-robot成员
5月14日 关闭了关联的issue
CANN-robotCANN-robot成员
5月14日 合入了pull request
Cchen-shuai成员
5月14日 修改了pull request 的描述