已合并
新增 ReLU 实验算子 #4478
cwzhang创建于 4月30日
新增 ReLU 实验算子 #4478
已合并
Pull Request已成功合入, 合并人@CANN-robot
(感谢 cwzhang 的贡献)CANN-robot
4月30日 评论:
4月30日 评论:
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 |
|---|---|---|
| experimental/activation | ✅ 周奇龙, 查建青 (2/2) | ✅ 查建青, 周奇龙 (2/1) |
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)
CLA Signature Pass
cwzhang, thanks for your pull request. All authors of the commits have signed the CLA. 👍


4月30日 添加了label:cann-cla/no
4月30日 将crystalhu,yangyang016,fanqirui,zhou-qilong,zhajianqing123,chenqi317,liubo75,tangweiwei2,liujie12345678,Chen_HaoWen,wangyongguang,zhang-wu设为评审人
4月30日 将crystalhu,yangyang016,fanqirui,zhou-qilong,zhajianqing123,chenqi317,liubo75,tangweiwei2,liujie12345678,Chen_HaoWen,wangyongguang,zhang-wu设为评审人
此处折叠了124条消息 查看更多
5月15日 删除了label:ci-pipeline-running
5月15日 添加了label:ci-pipeline-passed
CANN-robot
5月15日 评论:
5月15日 评论:
5月15日 关闭了关联的issue
5月15日 合入了pull request
描述
新增 Relu 实验算子,位于
experimental/activation/relu,用于对输入 Tensor 执行 ReLU 激活函数计算,公式为relu(x) = max(x, 0)。TBE转AscendC算子迁移项目
关联的Issue
[Requirement|需求建议]: 新增Relu实验算子(关联PR用于追踪)
测试
UT 测试覆盖以下 25 个场景
test_aclnn_relu.cppcase_001_float:FLOAT32 数据类型精度验证case_002_float16:FLOAT16 数据类型精度验证case_003_bfloat16:BFLOAT16 数据类型精度验证(910B+ 平台支持)case_004_int8:INT8 数据类型精度验证case_005_int32:INT32 数据类型精度验证case_006_int64:INT64 数据类型精度验证case_007_empty_tensor:空 Tensor 支持case_008_not_contiguous:非连续 Tensor 支持case_009_invalid_input_dtype:输入非法类型 bool 校验case_010_invalid_output_dtype:输出非法类型 bool 校验case_011_dtype_mismatch:输入输出数据类型不一致校验case_012_nullptr:空指针校验case_013_shape_mismatch:输入输出 shape 不一致校验case_014_max_dim:维度超限(>8)校验case_015_inplace_float:原地计算 FLOAT32 精度验证case_016_inplace_int64:原地计算 INT64 精度验证case_017_inplace_invalid_dtype:原地计算非法类型校验case_018_inplace_nullptr:原地计算空指针校验case_019_inplace_max_dim:原地计算维度超限校验case_020_inplace_float16:原地计算 FLOAT16 精度验证case_021_inplace_bfloat16:原地计算 BFLOAT16 精度验证(910B+ 平台支持)case_022_inplace_not_contiguous:原地计算非连续 Tensor 支持case_023_inplace_empty_tensor:原地计算空 Tensor 支持case_024_inplace_int8:原地计算 INT8 精度验证case_025_inplace_int32:原地计算 INT32 精度验证ATK 精度测试 2100 / 2100 通过
文档更新
docs/aclnnRelu&aclnnInplaceRelu.mdREADME.mdexamples/test_aclnn_relu.cpp&examples/test_aclnn_inplace_relu.cpp审核问题处理
experimental/activation/relu类型标签