| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
Complex示例改用C++ RAII资源管理,与IsFinite/IsInf示例风格对齐 Co-authored-by: zhouqilong<zhouqilong2@huawei.com> # message auto-generated for no-merge-commit merge: !4667 merge raii-complex into master Complex示例改用C++ RAII资源管理,与IsFinite/IsInf示例风格对齐 Created-by: zhou-qilong Commit-by: zhouqilong Merged-by: cann-robot Description: ## 描述 将 math/complex/examples 下的 aclnn 示例由手动资源管理改为 C++ RAII 管理,与同仓 math/is_finite、math/is_inf 示例风格保持一致。 ## 测试 - bash build.sh --run_example complex eager --soc=ascend950:编译通过,在 Ascend950PR 上运行成功,输出符合预期(real=[0,1,…,7]、imag=[1,1,1,2,2,2,3,3] 正确组合为复数 (0,1)、(1,1)、(2,1)、(3,2) 等),示例正常退出。 ## 文档更新 无。 ## 类型标签 - [x] 其他,请描述:示例代码改造(C++ RAII资源管理) See merge request: cann/ops-math!4667 | 2 个月前 |