已关闭
[Bug-Report|缺陷反馈]: foreach算子op_api文件下存在大量TensorList 判空重复代码需要进行整改 #6040
shilulu创建于  11 天前关闭于  11 天前
shilulu成员
11 天前 创建

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

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

foreach算子op_api文件下存在大量TensorList 判空重复代码需要进行整改,涉及算子:
foreach_add_list
foreach_addcdiv_scalar
foreach_addcdiv_scalar_list
foreach_addcmul_scalar
foreach_div_list
foreach_div_scalar
foreach_maximum_scalar
foreach_minimum_scalar
foreach_mul_list
foreach_mul_scalar
foreach_pow_scalar
foreach_round_off_number
foreach_sqrt
foreach_sub_list
foreach_sub_scalar

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

910B/950

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

foreach算子op_api文件下存在大量TensorList 判空重复代码需要进行整改,涉及算子:
foreach_add_list
foreach_addcdiv_scalar
foreach_addcdiv_scalar_list
foreach_addcmul_scalar
foreach_div_list
foreach_div_scalar
foreach_maximum_scalar
foreach_minimum_scalar
foreach_mul_list
foreach_mul_scalar
foreach_pow_scalar
foreach_round_off_number
foreach_sqrt
foreach_sub_list
foreach_sub_scalar

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

抽取公共方法后,降低重复率

无

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

likedislike
yuning_chenyuning_chen成员
11 天前 将 shilulu 设为负责人
CANN-robotCANN-robot成员
11 天前 关闭了 issue
CANN-robotCANN-robot成员
11 天前 添加了label:resolved