Thanks for sending an issue! Please fill in the following template to help quickly solve your problem.
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
910B/950
抽取公共方法后,降低重复率
无
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 / 必填)
抽取公共方法后,降低重复率
Related log / screenshot / 日志 / 截图 (Mandatory / 必填)
无
Special notes for this issue/备注 (Optional / 选填)