Skip to content

Conversation

co63oc
Copy link
Contributor

@co63oc co63oc commented Sep 1, 2025

增加单测 test_draft_model_postprocess.py
算子无返回值,base_model_seq_lens_this_time参数 inplace 修改,参数中 const 是设置引用

Copy link

paddle-bot bot commented Sep 1, 2025

Thanks for your contribution!

@freeliuzc
Copy link
Collaborator

辛苦加上有意义的数值测试~

@co63oc
Copy link
Contributor Author

co63oc commented Sep 2, 2025

辛苦加上有意义的数值测试~

        self._test_draft_model_postprocess(1, 11)
        self._test_draft_model_postprocess(2, 2048)

这里是测试的数据,只是算子没有返回值,不比较返回值

@freeliuzc
Copy link
Collaborator

辛苦加上有意义的数值测试~

        self._test_draft_model_postprocess(1, 11)
        self._test_draft_model_postprocess(2, 2048)

这里是测试的数据,只是算子没有返回值,不比较返回值

这里算子的 value 是 inplace 的,可以直接用原变量对比数值

@co63oc
Copy link
Contributor Author

co63oc commented Sep 3, 2025

/re-run all-failed

@co63oc
Copy link
Contributor Author

co63oc commented Sep 3, 2025

辛苦加上有意义的数值测试~

已修改

@luotao1 luotao1 merged commit e832516 into PaddlePaddle:develop Sep 4, 2025
15 of 17 checks passed
@co63oc co63oc deleted the fix23 branch September 9, 2025 00:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants