| CdistGrad示例改用C++ RAII资源管理,与IsFinite/IsInf示例风格对齐 Co-authored-by: zhouqilong<zhouqilong2@huawei.com> # message auto-generated for no-merge-commit merge: !4664 merge raii-cdist_grad into master CdistGrad示例改用C++ RAII资源管理,与IsFinite/IsInf示例风格对齐 Created-by: zhou-qilong Commit-by: zhouqilong Merged-by: cann-robot Description: ## 描述 将 math/cdist_grad/examples 下的 aclnn 示例由手动资源管理改为 C++ RAII 管理,与同仓 math/is_finite、math/is_inf 示例风格保持一致。 ## 测试 - Start compile and run examples file: ../math/cdist_grad/examples/test_aclnn_cdist_backward.cpp pkg_mode:cust vendor_name:cdist_grad result[0] is: -4.500000 result[1] is: -4.500000 result[2] is: -4.500000 result[3] is: -4.500000 result[4] is: -4.500000 result[5] is: -4.500000 result[6] is: -4.500000 result[7] is: -4.500000 result[8] is: -4.500000 result[9] is: -4.500000 run test_aclnn_cdist_grad, execute samples success ## 文档更新 无。 ## 类型标签 - [x] 其他,请描述:示例代码改造(C++ RAII资源管理) See merge request: cann/ops-math!4664 | 1 个月前 |