已开启
【代码侦探Challenge08】赛诺信致(北京)软件技术有限公司 - challenge08_tanhcustom #4054
小东创建于 8 天前
【代码侦探Challenge08】赛诺信致(北京)软件技术有限公司 - challenge08_tanhcustom #4054
已开启
合并受阻
小东
8 天前 评论:
8 天前 评论:
/compile


8 天前 添加了label:cann-cla/yes
CANN-robot
8 天前 评论:
8 天前 评论:
CANN-robot
8 天前 评论:
8 天前 评论:
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.
You can self-configure the PR merge rules for this repository. For more details, please refer to Here.
For more, you also can visit HICANN.
PR Approval Progress
⚠️ This PR does not yet meet the following requirements:lgtm (requires ≥ 2 person(s) per module)、approve (requires ≥ 1 person(s) per module)
Module Approval Details
| module | lgtm status | approve status |
|---|---|---|
| repo-cann/cann-outreach | ❌ (0/2)(You can also ask: yanyawen, jxlang, 田晓亮, gcw_tgPdOLZT, yanhf) | ❌ (0/1)(You can also ask: li-shengxian3, gcw_tgPdOLZT, 王艳秋, Carolina_yuan, yanhf) |
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)


8 天前 修改标题为 “【代码侦探Challenge08】赛诺信致(北京)软件技术有限公司 - challenge08_tanhcustom”,原标题为“[代码侦探(第八期)] 赛诺信致(北京)软件技术有限公司 - challenge08_tanhcustom”
8 天前 修改标题为 “【代码侦探Challenge08】赛诺信致(北京)软件技术有限公司 - challenge08_tanhcustom”,原标题为“[代码侦探(第八期)] 赛诺信致(北京)软件技术有限公司 - challenge08_tanhcustom”
赛诺信致(北京)软件技术有限公司
团队信息
成员
算子: challenge08_tanhcustom
多核实现,UB 双缓冲流水线。Tiling 策略:总元素数按 AIV 核数均分,blockFactor 向上对齐到 16 元素(32B,兼容 float32/float16);数据量小于 1024×核数 时自动减少启动核数;ubFactor 按 UB 容量自适应(输入/输出 2 队列 × BUFFER_NUM=2),尾核取剩余元素防越界。Kernel 侧 CopyIn → AscendC::Tanh → CopyOut 三段式,逐元素计算 y = (exp(x) - exp(-x)) / (exp(x) + exp(-x)),最后一个 tile 取剩余量。