Add a common benchmark base class and unify the static and dynamic base implementation. #1249
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
当前op benchmark具备paddle静态图和动态图op性能测试的能力:静态图测试基类是PaddleAPIBenchmarkBase,测试脚本在
tests_v2目录下;动态图测试基类是PaddleDynamicAPIBenchmarkBase,测试脚本在dynamic_tests_v2目录下。当前op benchmark系统存在以下问题:我们计划将动态图、静态图的测试脚本统一(如#1206),本PR是其中的第一步,实现动态图、静态图测试的公共基类。基于本PR,已经跑过动态图的全量OP测试,见cuda11.4_dynamic_op_benchmark_summary-2022-01-12.xlsx。静态图需要基于#1237 测试,计划先合入这个PR,在#1237 中验证静态图全量测试能力。
CI逻辑的修改:
common_import.py不是op测试脚本,添加过滤功能CI中已验证基类重构后静态图、动态图abs测试的能力:
