| MhcSinkHorn 功能问题修复--修复infershape错误把动态标签识别为真实值的问题
Co-authored-by: qq_52056150<wangshuo179@huawei.com>
# message auto-generated for no-merge-commit merge:
!5142 merge MhcSinkHorn-功能问题修复 into master
MhcSinkHorn 功能问题修复--修复infershape错误把动态标签识别为真实值的问题
Created-by: qq_52056150
Commit-by: qq_52056150
Merged-by: cann-robot
Description: ## 描述
修复 MhcSinkhorn 在动态 shape 场景下将 '-1'动态维当作真实维度参与 'n0 == n1' 校验,导致 含-1的用例被误判失败的问题。修改后仅在'n0'、'n1'都为静态已知维度时校验相等,并在一侧为动态维时尽量用另一侧静态维推导输出 shape,不影响原有静态 shape 行为。
## 关联的Issue
https://gitcode.com/cann/ops-transformer/issues/2367
## 测试
本地用例批跑已经验证通过,二级冒烟、算子OBP冒烟均无异常
## 文档更新
不涉及
## 类型标签
<!-- [x] 表示选中 -->
- [x] 🐛 Bug 修复
- [ ] ✨ 新特性
- [ ] ⚡ 性能优化
- [ ] ♻️ 重构
- [ ] 🧪 测试
- [ ] 📦 构建/CI
- [ ] 🔧 配置变更
- [ ] 📝 文档更新
- [ ] ⬆️ 依赖升级
- [ ] 🔒 安全修复
- [ ] 🧹 代码清理
- [ ] ❓ 其他,请描述:
See merge request: cann/ops-transformer!5142 | 19 天前 |