已开启
【ai4c-option-tuner】名字 'np' 未被定义 #6
liuf9创建于  2024年12月8日
liuf9
2024年12月8日 创建

【缺陷描述】:请补充详细的缺陷问题现象描述
未加载numpy包,NameError: name 'np' is not defined

一、缺陷信息

**【缺陷所属的os版本】
openEuler-22.03-LTS-SP1-rc4

**【缺陷所属软件及版本号】
AI4C-1.0.4-ahpha

【问题复现步骤】:请描述具体的操作步骤
运行AI4C/python/test/option_tuner/run_option_tuner.sh,修改--test-limit为50(调优50轮)。

【实际结果】
执行16轮次后,出现以下报错:

Traceback (most recent call last):
  File "/usr/local/bin/ai4c-option-tune", line 8, in 
    sys.exit(main())
  File "/home/lfy/.local/lib/python3.9/site-packages/ai4c-option_tuner/mytuner.py", line 360, in main
    File "/home/lfy/.local/lib/python3.9/site-packages/ai4c-option_tuner/mytuner.py", line 290, in tune
    File "/home/lfy/.local/lib/python3.9/site-packages/ai4c-option_tuner/mytuner.py", line 265, in update
    File "/home/lfy/.local/lib/python3.9/site-packages/ai4c-option_tuner/search.py", line 63, in find_maxima
    File "/home/lfy/.local/lib/python3.9/site-packages/ai4c-option_tuner/xgboost_cost_model.py", line 28, in predict
    File "/home/lfy/.local/lib/python3.9/site-packages/ai4c-option_tuner/xgboost_cost_model.py", line 0]
NameError: name 'np' is not defined

【期望结果】
正常运行所有调优流程,输出结果

二、缺陷分析结构反馈
影响性分析说明:

缺陷严重等级:(Critical/High/Moderate/Low)

缺陷根因说明:

受影响版本排查(受影响/不受影响):
openEuler-20.03-LTS-SP4
openEuler-22.03-LTS-SP1
openEuler-22.03-LTS-SP3
openEuler-22.03-LTS-SP4
openEuler-24.03-LTS

修复是否涉及abi变化(是/否):
openEuler-20.03-LTS-SP4
openEuler-22.03-LTS-SP1
openEuler-22.03-LTS-SP3
openEuler-22.03-LTS-SP4
openEuler-24.03-LTS

likedislike
Lliuf9
2024年12月8日 创建了缺陷
openeuler-ci-bot
openeuler-ci-bot成员
2024年12月8日 评论:

Hi liuf9, welcome to the openEuler Community.
I'm the Bot here serving you. You can find the instructions on how to interact with me at Here.
If you have any questions, please contact the SIG: Compiler, and any of the maintainers: @eastb233 , @kuenking111 , @cf-zhao , @li-yancheng , @stubCode , @alexanderbill , @jvmboy , any of the committers: @liuf9 , @zhenyu--zhao_admin , @wumingchuan

likedislike
openeuler-ci-botopeneuler-ci-bot成员
2024年12月8日 添加了   sig/Compiler 标签
Lliuf9
2024年12月8日 修改了描述
Lliuf9
2024年12月8日 修改了描述
Lliuf9
2024年12月8日 修改了描述
Lliuf9
2024年12月8日 修改了描述
Lliuf9
2024年12月8日 关联了openEuler/AI4C Pull Request !14
Lliuf9
2024年12月10日 通过合并 Pull Request !14: [Bugfix] Remove undefined "np" symbol in ai4c-option-tuner 将任务状态从 待办的 修改为已完成
openeuler-ci-botopeneuler-ci-bot成员
2024年12月10日 将任务状态从 已完成 修改为待办的
openeuler-ci-bot
openeuler-ci-bot成员
2024年12月10日 评论:

@liuf9 未对受影响版本排查/abi变化进行分析,重新打开issue

likedislike
openeuler-ci-botopeneuler-ci-bot成员
2024年12月10日 将负责人设置为周磊
openeuler-ci-botopeneuler-ci-bot成员
2024年12月10日 修改了描述
openeuler-ci-bot
openeuler-ci-bot成员
2024年12月10日 评论:

@jvmboy , @eastb233 , @kuenking111 , @cf-zhao , @li-yancheng , @stubCode , @alexanderbill , @liuf9 , @wumingchuan , @zhenyu--zhao_admin
issue处理注意事项:
1. 当前issue受影响的分支提交pr时, 须在pr描述中填写当前issue编号进行关联, 否则无法关闭当前issue;
2. 模板内容需要填写完整, 无论是受影响或者不受影响都需要填写完整内容,未引入的分支不需要填写, 否则无法关闭当前issue;
3. 以下为模板中需要填写完整的内容, 请复制到评论区回复, 注: 内容的标题名称(影响性分析说明, 缺陷严重等级, 受影响版本排查(受影响/不受影响), 修复是否涉及abi变化(是/否))不能省略,省略后defect-manager将无法正常解析填写内容.
评论区可能使用到的指令说明:

指令 指令说明 使用权限
/check-issue 触发defect-manager校验 不限
/reason xxx /reason +挂起或取消条件 不限

影响性分析说明:

缺陷严重等级:(Critical/High/Moderate/Low)

缺陷根因说明:

受影响版本排查(受影响/不受影响):

  1. openEuler-20.03-LTS-SP4:
  2. openEuler-22.03-LTS-SP1:
  3. openEuler-22.03-LTS-SP3:
  4. openEuler-22.03-LTS-SP4:
  5. openEuler-24.03-LTS:

abi变化(是/否):

  1. openEuler-20.03-LTS-SP4:
  2. openEuler-22.03-LTS-SP1:
  3. openEuler-22.03-LTS-SP3:
  4. openEuler-22.03-LTS-SP4:
  5. openEuler-24.03-LTS:

缺陷issue处理具体操作请参考:
https://gitee.com/Coopermassaki/cve-manager/blob/master/cve-vulner-manager/doc/md/defect-manager-manual.md
pr关联issue具体操作请参考:
https://gitee.com/help/articles/4142

likedislike
openeuler-ci-botopeneuler-ci-bot成员
2024年12月10日 添加了   DEFECT/UNFIXED 标签
openeuler-ci-botopeneuler-ci-bot成员
2024年12月10日 将计划截止日期设置为2025-01-08
openeuler-ci-botopeneuler-ci-bot成员
2024年12月10日 将计划开始日期设置为2024-12-08