已合并
补充cppgen框架 #817
init__zhb__创建于 7月6日
补充cppgen框架 #817
已合并
Pull Request已成功合入, 合并人@CANN-robot
(感谢 init__zhb__ 的贡献)python/catlass_cppgen/catlass_cppgen/common/typing.py
@@ -0,0 +12,2 @@
12+# 使用字符串形式避免循环导入,from __future__ import annotations 会自动处理
13+SupportedTensor = Union[torch.Tensor, np.ndarray, "OpTensor"] # type: ignore[name-defined]
14+SupportedDataType = Union[torch.dtype, np.dtype]
【openlibing.ci】识别到代码检查告警抑制注释,匹配工具:mypy,请Committer检视其合理性。


7月6日 添加了label:stat/needs-squash
7月6日 添加了label:cann-cla/yes
CANN-robot
7月6日 评论:
7月6日 评论:
CANN-robot
7月6日 评论:
7月6日 评论:
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/catlass | ✅ yuantao_, sunhao_hw (2/2) | ✅ yuantao_ (1/1) |
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)
CLA Signature Pass
init__zhb__, thanks for your pull request. All authors of the commits have signed the CLA. 👍


此处折叠了73条消息 查看更多
7月10日 关联了issue:[Requirement|需求建议]: 建议补充一个适用于模板库的cpp算子代码生成工具框架
yuantao
7月10日 评论:
7月10日 评论:
/lgtm
/approve


7月10日 添加了label:lgtmapproved
7月10日 合入了pull request
CANN-robot
7月10日 评论:
7月10日 评论:
Pull Request 已合并或已关闭。
If you want to solve this problem, you can click here to do it in the FAQs.


描述
catlass_cppgen是一个基于 Python 的代码生成框架,用于构建和生成 CATLASS 高性能算子。该框架提供接口以定义算子参数、选择优化策略,并自动生成对应的 C++ 核函数代码。本次补充的内容结构如下:
相关的测试路径:
关联的Issue
原因
演进与完善
测试
gen-match 测试(UT-level)
执行
tests/run_cppgen.sh测试PASS。文档更新
更新下述文档:
python/catlass_cppgen/README.mdpython/catlass_cppgen/docs/evg_api.mdpython/catlass_cppgen/docs/kernel_api.mdpython/catlass_cppgen/docs/optensor_api.md类型标签