已关闭
[Bug-Report|缺陷反馈]:image类算子文档和example问题 #871
万世林创建于  10 天前关闭于  7 天前
万世林成员
10 天前 创建

Thanks for sending an issue! Please fill in the following template to help quickly solve your problem.

Describe the current behavior / 问题描述 (Mandatory / 必填)

  1. 部分算子的文档及对应example中使用CHECK_RET宏时多了一个分号,
    CHECK_RET(ret == ACL_SUCCESS, LOG_PRINT("allocate workspace failed. ERROR: %d\n", ret); return ret;);,正常应该为CHECK_RET(ret == ACL_SUCCESS, LOG_PRINT("allocate workspace failed. ERROR: %d\n", ret); return ret);,该错误不影响编译和执行

     image/resize_bilinear_v2/docs/aclnnResize.md
     image/resize_nearest_neighbor_v2/docs/aclnnUpsampleNearest1d.md
     image/resize_nearest_neighbor_v2/docs/aclnnUpsampleNearest2d.md
     image/resize_upsample_trilinear/docs/aclnnUpsampleTrilinear3d.md
     image/upsample_nearest/docs/aclnnUpsampleNearestExact1d.md
     image/upsample_nearest/docs/aclnnUpsampleNearestExact2d.md
     image/upsample_nearest2d_grad/docs/aclnnUpsampleNearest2dBackward.md
     image/upsample_nearest3d/docs/aclnnUpsampleNearest1dV2.md
     image/upsample_nearest3d/docs/aclnnUpsampleNearest2dV2.md
     image/upsample_nearest3d/docs/aclnnUpsampleNearest3d.md
     image/upsample_nearest3d_grad/docs/aclnnUpsampleNearest3dBackward.md
     image/upsample_nearest_exact3d/docs/aclnnUpsampleNearestExact3d.md
     image/upsample_nearest_exact3d_grad/docs/aclnnUpsampleNearestExact3dBackward.md
     image/upsample_trilinear3d_backward/docs/aclnnUpsampleTrilinear3dBackward.md
    
  2. image/resize_bilinear_v2/docs/aclnnResize.md创建scales 后的校验 的失败返回值为字面量0,意义不明

  3. image/upsample_bicubic2d_aa/examples/test_aclnn_upsample_bicubic2d_aa.cpp中outHostData定义时大小错误。107行Api大小写与其他示例不统一

  4. image/upsample_bicubic2d_aa_grad/examples/test_aclnn_upsample_bicubic2d_aa_grad.cpp和image/upsample_bilinear2d_grad/examples/test_aclnn_upsample_linear1d_backward.cpp中scale赋值错误

Environment / 环境信息 (Mandatory / 必填)

Steps to reproduce the issue / 重现步骤 (Mandatory / 必填)

查看代码

Describe the expected behavior / 预期结果 (Mandatory / 必填)

代码无冗余内容,风格统一

Special notes for this issue/备注 (Optional / 选填)

likedislike
万世林成员
10 天前 添加了label:bug-report
万世林成员
10 天前 修改了issue 的描述
万世林成员
10 天前 修改了issue 的描述
万世林成员
10 天前 修改了issue 的描述
CANN-robotCANN-robot成员
7 天前 关闭了 issue
CANN-robotCANN-robot成员
7 天前 添加了label:resolved