Skip to content

Conversation

@3619117923
Copy link

@3619117923 3619117923 commented Dec 7, 2025

Summary:

在fake_perf_degrad中修改了 extended 评估模式以符合要求,并修复了 verify_aggregated_params与samples_statistics的相关逻辑,与extend模式进行适配。在整体调用流程中增加了mode参数的调用链。在plot_ESt中提供了可选mode参数,支持extend功能。同时保证默认default参数时正常运行。

test:

使用fake.log进行测试,保证Aggregated与Microscopic的计算结果一致

Example:

ESt_result image

Extra:

如有后续修改或赛事联系需求,请联系minazukihotaru710@163.com或直接在本PR下留言。

修改fake_perf_degrad及其后续逻辑
@paddle-bot
Copy link

paddle-bot bot commented Dec 7, 2025

Thanks for your contribution!

@CLAassistant
Copy link

CLAassistant commented Dec 7, 2025

CLA assistant check
All committers have signed the CLA.

@paddle-bot paddle-bot bot added the contributor External developers label Dec 7, 2025
@3619117923 3619117923 changed the title Hackathon NO.89 feat:Add extend logic for fake_perf_degrad 【Hackathon 9th Sprint No.89】 feat:Add extend logic for fake_perf_degrad Dec 8, 2025
@3619117923 3619117923 changed the title 【Hackathon 9th Sprint No.89】 feat:Add extend logic for fake_perf_degrad 【Hackathon 9th Sprint No.89】feat:Add extend logic for fake_perf_degrad Dec 8, 2025
699574 and others added 5 commits December 10, 2025 13:21
修改了comment中的要求
This reverts commit 55caedc.
按照comment修复了代码
按照comment更新代码


def fake_perf_degrad(tolerance, error_code, type="default") -> str:
def fake_perf_degrad(tolerance, error_code, positive_tolerance_interpretation: PositiveToleranceInterpretation,) -> str:
Copy link
Collaborator

Choose a reason for hiding this comment

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

看起来没有格式化。你需要启用pre-commit工具

4: 4
}

def is_error_tolerated(self, tolerance: int, base_error_code: str) -> bool:
Copy link
Collaborator

Choose a reason for hiding this comment

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

两个类的这个函数的逻辑都非常混乱,这是因为你没有提供一个Errno枚举变量。
如果当前文件有MismatchExtendedErrorEnum

from enum import Enum
class MismatchExtendedErrorEnum(Enum):
    kAccuracyViolation = 1
    kValueTypeOrMetaMismatch = 2
    kCompilationFailed = 3
    kExecutionFailed = 4

    @classmethod
    def get_error_enum(cls, base_error_type: str) -> 'MismatchExtendedErrorEnum':
        TODO

本函数的主体逻辑将是一个>=而已。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

contributor External developers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants