已合并
【特性】新增fusedSgd #6276
majiajian_hw创建于 6月18日
【特性】新增fusedSgd #6276
已合并
majiajian_hw创建于 6月18日
majiajian_hw成员
6月18日

描述

新增fusedSgd算子

关联的Issue

https://gitcode.com/cann/ops-nn/issues/3454

测试

已完成泛化测试

测试用例

  std::vector<float> paramsRefHostData1 = {1, 2, 3, 4, 5, 6, 7, 8};
  std::vector<float> gradsRefHostData1 = {0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8};
  std::vector<float> momentumHostData1 = {0, 0, 0, 0, 0, 0, 0, 0};
  std::vector<float> paramsRefHostData2 = {9, 10, 11, 12};
  std::vector<float> gradsRefHostData2 = {0.9, 1.0, 1.1, 1.2};
  std::vector<float> momentumHostData2 = {0, 0, 0, 0};
  std::vector<float> gradScaleOptionalHostData = {1.0};
  std::vector<int64_t> inputShape1 = {2, 2, 2};
  std::vector<int64_t> inputShape2 = {2, 2};
  std::vector<int64_t> scalarShape = {1};

执行结果

====== Tensor 2 gradsRef results ======
result[0] is: 0.900000
result[1] is: 1.000000
result[2] is: 1.100000
result[3] is: 1.200000
------ Momentum buffer 2 ------
result[0] is: 0.990000
result[1] is: 1.100000
result[2] is: 1.210000
result[3] is: 1.320000

文档更新

新增README.md、aclnnFusedSgd.md文件

类型标签

  • Bug修复
  • 新特性
  • 性能优化
  • 文档更新
  • 其他,请描述:
likedislike
Pull Request已成功合入, 合并人@CANN-robot
(感谢 majiajian_hw 的贡献)
Mmajiajian_hw成员
6月18日 创建了 pull request,commit 6fd0aa70
CANN-robotCANN-robot成员
6月18日 添加了label:cann-cla/yes
CANN-robot
CANN-robot成员
6月18日 评论:

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


PR Approval Progress

Congratulations! All modules have met the lgtm and approve requirements.

Module Approval Details

module lgtm status approve status
*/*/README.md 陈琦, 蔡雯雯, 唐玮玮 (3/2) 蔡雯雯 (1/1)
*/*/docs/acl*.md 陈琦, 唐玮玮, 蔡雯雯 (3/2) 蔡雯雯 (1/1)
*/*/op_api/*.h 汤磊, 唐玮玮, 陈琦 (3/2) 汤磊 (1/1)
*/*/op_host/*_def.cpp 汤磊, 唐玮玮, 陈琦 (3/2) 汤磊 (1/1)
optim 陈琦, 於欣洁, 唐玮玮 (3/2) 唐玮玮, 陈琦, 於欣洁 (3/1)
repo-cann/ops-nn 陈琦, 唐玮玮 (2/2) 陈琦, 唐玮玮 (2/1)

💡 Tip:

  • Committer can comment /approve or /lgtm
  • Commenting /approve implies both code review (lgtm) and intent to merge (approve)

CLA Signature Pass

nunnons2, thanks for your pull request. All authors of the commits have signed the CLA. 👍

likedislike
majiajian_hw成员
6月18日 评论:

compile

likedislike
Mmajiajian_hw成员
6月18日 update merge request[project id: 7665709, iid: 6276, commit_id: 4639a2f5742b07b824752b88ddec6d2bbd584ee9] virtual merging success
此处折叠了92条消息 查看更多
CANN-robotCANN-robot成员
6月23日 添加了label:lgtm
CANN-robot
CANN-robot成员
6月23日 评论:

The MR can not be merged, because of CodeReview discussion not resolved

If you want to solve this problem, you can click here to do it in the FAQs.

likedislike
CANN-robotCANN-robot成员
6月23日 关闭了关联的issue
CANN-robotCANN-robot成员
6月23日 合入了pull request
CANN-robot
CANN-robot成员
6月23日 评论:

Pull Request 已合并或已关闭。

If you want to solve this problem, you can click here to do it in the FAQs.

likedislike