Closed
[Bug-Report|缺陷反馈]: apply_keras_momentum example编译构建失败 #8301
陈晨Add on  16 days agoClosed at  16 days ago
陈晨
陈晨Collaborators
16 days ago Create

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

apply_keras_momentum example编译构建失败
执行 bash build.sh --run_example apply_keras_momentum graph --example_name=apply_keras_momentum --soc=ascend950 时,GEIR 示例编译失败:
test_geir_apply_keras_momentum.cpp:34: fatal error: ../op_graph/apply_keras_momentum_proto.h: No such file or directory

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

ascend950

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

bash build.sh --run_example apply_keras_momentum graph --example_name=apply_keras_momentum --soc=ascend950

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

Run arch35/test_geir_apply_keras_momentum success.

GEIR 示例编译失败:
test_geir_apply_keras_momentum.cpp:34: fatal error: ../op_graph/apply_keras_momentum_proto.h: No such file or directory

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

likedislike
陈晨陈晨Collaborators
16 days ago Added label: bug-report
CANN-robotCANN-robotCollaborators
16 days ago Close issue
CANN-robotCANN-robotCollaborators
15 days ago Added label: resolved
chenjiayi_chenjiayi_Collaborators
9 days ago Assign chenjiayi_ as responsible person
CANN-robotCANN-robotCollaborators
9 days ago changed custom state from 进行中 to 已完成
chenjiayi_
chenjiayi_Collaborators
9 days ago Comments:

补充说明本问题的处理结果:

已修复并合入 master。apply_keras_momentum 的 arch35 GEIR 示例修正 proto 头文件相对路径。

修复内容(文件/函数):

  • optim/apply_keras_momentum/examples/arch35/test_geir_apply_keras_momentum.cpp:34:#include "../op_graph/..." 改为 #include "../../op_graph/..."。
  • 该写法与 bn_infer_grad、bn_training_update 等 arch35 示例保持一致。

验证:

  • PR 记录 bash build.sh --run_example apply_keras_momentum graph --example_name=apply_keras_momentum --soc=ascend950 验证通过。
  • master 已按修复后 include 路径落地。

说明:本次为示例编译路径修正,算子实现与接口保持原样。

该 issue 已关闭,修复已由 PR !13810 合入 master。

MR 链接:PR#13810

likedislike
chenjiayi_chenjiayi_Collaborators
21 hours ago Removed responsible person chenjiayi_