| fix: fix empty tensor bugs
Co-authored-by: yaolu_happy<yaolu15@huawei.com>
# message auto-generated for no-merge-commit merge:
!3511 merge master into master
fix: fix empty tensor bugs
Created-by: yaolu_happy
Commit-by: yaolu_happy
Merged-by: cann-robot
Description: ## 描述
修复了先前算子不支持空tensor输入场景的bug。当输入空tensor时,进入空tensor tilingkey,expandedXOut、expandedRowIdxOut和expandedScaleOut的返回值为空tensor,expertTokensCountOrCumsumOut返回全0的tensor。
## 关联的Issue
DTS2026032321103
## 测试
算子泛化。
## 文档更新
更新了aclnnMoeInitRoutingV3.md, 增加空tensor处理描述,修改了部分描述不准确的文本。
## 类型标签
<!-- [x] 表示选中 -->
- [x] 🐛 Bug 修复
- [ ] ✨ 新特性
- [ ] ⚡ 性能优化
- [ ] ♻️ 重构
- [ ] 🧪 测试
- [ ] 📦 构建/CI
- [ ] 🔧 配置变更
- [x] 📝 文档更新
- [ ] ⬆️ 依赖升级
- [ ] 🔒 安全修复
- [ ] 🧹 代码清理
- [ ] ❓ 其他,请描述:
See merge request: cann/ops-transformer!3511 | 1 个月前 |