已合并
优化多个文件中的代码风格 #1295
yuantao创建于 2月24日
优化多个文件中的代码风格 #1295
已合并
Pull Request已成功合入, 合并人@CANN-robot
(感谢 yuantao 的贡献)CANN-robot
2月24日 评论:
2月24日 评论:
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
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)


2月24日 将FelixTang7,zhou-qilong,wangrui_,rxtfeng,loov1,songkai111,zhangyuxiang0119,llimwang,gubaocheng设为评审人
2月24日 将FelixTang7,zhou-qilong,wangrui_,rxtfeng,loov1,songkai111,zhangyuxiang0119,llimwang,gubaocheng设为评审人
2月24日 将FelixTang7,zhou-qilong,wangrui_,rxtfeng,loov1,songkai111,zhangyuxiang0119,llimwang,gubaocheng设为审查人
2月24日 将FelixTang7,zhou-qilong,wangrui_,rxtfeng,loov1,songkai111,zhangyuxiang0119,llimwang,gubaocheng设为审查人
2月24日 添加了label:cann-cla/yes
此处折叠了165条消息 查看更多
2月28日 添加了label:lgtm
CANN-robot
2月28日 评论:
2月28日 评论:
Review Guide
This pull-request passes review.
Committers who wrote a comment of /approve are: zhangyuxiang0119, zhou-qilong, wangyongguang.
Reviewers who wrote a comment of /lgtm are: zhangyuxiang0119, zhou-qilong, rxtfeng, wangyongguang.


2月28日 关闭了关联的issue
2月28日 合入了pull request
描述
多个文件中的代码风格可以进行改进:
if (tail_dim * type_size[promoteType] % 32 != 0) {add1.update_output_desc_##outputName(outputName##outputIndex##_desc);inputs.push_back(placeholder##intputIndex);char *endptr;pData[i] = value + (i % 3) * 0.4f; // 让数据更有意义return 2;return 4;if (inputs->Size() > 512 || inputs->Size() < 33) {catMaxInputSize = 512;FILE *fp;add1.set_attr_##attrName(attrValue);auto randomUniform = GetRandomUniformNoReplaceMent(selfContiguous, randomParams, uniqueExecutor.get());return SqueezeWithAxes(x_shape, squeeze_dims, y_shape);tiling.set_endTensorIdx(endTensorIdx);return SqueezeWithAxes(x_shape, squeeze_dims, y_shape);tiling.set_endTensorOffset(endTensorOffset);if (!IsAxesRangeValid(squeeze_dims, static_cast<int64_t>(x_shape->GetDimNum()), axes)) {AscendC::And(..., mask, len / SHIFT_LEFT_32, { 1, 1, 1, 8,std::vector<float> outHostData(8, 0);char *endptr;std::vector<uint8_t> maskOutHostData(16, 0);FILE *fp;add1.set_attr_##attrName(attrValue);inputs.push_back(placeholder##intputIndex);add1.update_output_desc_##outputName(outputName##outputIndex##_desc);std::vector<uint8_t> outHostData(16, 0);std::vector<uint8_t> maskOutHostData(16, 0);std::vector<float> outHostData(8, 0);0catMaxInputs = 512;std::vector<int8_t> outHostData(8, 0);std::vector<uint8_t> outHostData(16, 0);inputs.push_back(placeholder##intputIndex);std::vector<float> outHostData(16, 0);std::vector<float> outHostData(8, 1);std::vector<double> outHostData(8, 0);关联的Issue
测试
文档更新
类型标签