Skip to content

[Feature Enhancement] Modify auto_fault_bisearcher#644

Merged
lixinqi merged 1 commit intoPaddlePaddle:developfrom
fangfangssj:auto
Feb 12, 2026
Merged

[Feature Enhancement] Modify auto_fault_bisearcher#644
lixinqi merged 1 commit intoPaddlePaddle:developfrom
fangfangssj:auto

Conversation

@fangfangssj
Copy link
Contributor

PR Category

Feature Enhancement

Description

  • 增加了二分定位瑕疵的尾处理逻辑,增加误差算子索引输出和测试子图保存
  • 完善二分定位到边界停止条件
  • 新增一个对不同设备进行定位的功能

@paddle-bot
Copy link

paddle-bot bot commented Feb 12, 2026

Thanks for your contribution!


eval_backend_diff.compare_correctness(ref_out, target_out, eval_args)
eval_backend_diff.compare_correctness(
list(flatten_tensor(ref_out)), list(flatten_tensor(target_out)), eval_args
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

部分中间结果返回是tuple(tensor),需要展开传入

Comment on lines +14 to +18
last_idx, is_broken = history[-1]
if last_idx == 1 and is_broken:
return True
if last_idx == high and not is_broken:
return True
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

增加边界停止条件

Comment on lines +116 to +118
save_base = Path(self.config["output_dir"]) / "faulty_test"
save_base.mkdir(parents=True, exist_ok=True)
shutil.copytree(test_file, save_base / test_file.name, dirs_exist_ok=True)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

支持将错误/误差算子子图保存到faulty_test目录下

@lixinqi lixinqi merged commit cd79100 into PaddlePaddle:develop Feb 12, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants