From bf13e90d76acacc3e1653f6a7191530b1d1fd15d Mon Sep 17 00:00:00 2001 From: gitee Date: Mon, 4 Sep 2023 15:24:25 +0800 Subject: [PATCH 1/2] csv --- .../api_accuracy_checker/compare/compare.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/debug/accuracy_tools/api_accuracy_checker/compare/compare.py b/debug/accuracy_tools/api_accuracy_checker/compare/compare.py index 6fc6a5ec09..750a198c70 100644 --- a/debug/accuracy_tools/api_accuracy_checker/compare/compare.py +++ b/debug/accuracy_tools/api_accuracy_checker/compare/compare.py @@ -8,8 +8,8 @@ from api_accuracy_checker.compare.compare_utils import CompareConst class Comparator: - TEST_FILE_NAME = "pretest_result.csv" - DETAIL_TEST_FILE_NAME = "pretest_details.csv" + TEST_FILE_NAME = "accuracy_checking_result.csv" + DETAIL_TEST_FILE_NAME = "accuracy_checking_details.csv" # consts for result csv COLUMN_API_NAME = "API name" @@ -57,11 +57,11 @@ class Comparator: write_csv(summary_test_rows, self.save_path) detail_test_rows = [[ - "Subject", "Bench Dtype", "NPU Dtype", + "Npu Name", "Bench Dtype", "NPU Dtype", "Cosine Similarity", "Cosine Similarity Message", "Max Rel Error", "Max Rel Err Message", - "Thousandth Rel Error Ratio", "Thousandth Rel Error Ratio Message", - "Ten Thousandth Rel Error Ratio", "Ten Thousandth Rel Error Ratio Message", + "Maximun Relative Error (dual thousandth)", "Maximun Relative Error (dual thousandth) Message", + "Maximun Relative Error (dual ten thousandth)", "Maximun Relative Error (dual ten thousandth) Message", "Compare Builtin Type", "Builtin Type Message", "Pass" ]] -- Gitee From 01730c55058ae3c4053bfe21125f13bdfbc0e56f Mon Sep 17 00:00:00 2001 From: gitee Date: Tue, 5 Sep 2023 15:42:45 +0800 Subject: [PATCH 2/2] fix --- debug/accuracy_tools/api_accuracy_checker/compare/compare.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/debug/accuracy_tools/api_accuracy_checker/compare/compare.py b/debug/accuracy_tools/api_accuracy_checker/compare/compare.py index 750a198c70..27fcc579e3 100644 --- a/debug/accuracy_tools/api_accuracy_checker/compare/compare.py +++ b/debug/accuracy_tools/api_accuracy_checker/compare/compare.py @@ -60,8 +60,8 @@ class Comparator: "Npu Name", "Bench Dtype", "NPU Dtype", "Cosine Similarity", "Cosine Similarity Message", "Max Rel Error", "Max Rel Err Message", - "Maximun Relative Error (dual thousandth)", "Maximun Relative Error (dual thousandth) Message", - "Maximun Relative Error (dual ten thousandth)", "Maximun Relative Error (dual ten thousandth) Message", + "Relative Error (dual thousandth)", "Relative Error (dual thousandth) Message", + "Relative Error (dual ten thousandth)", "Relative Error (dual ten thousandth) Message", "Compare Builtin Type", "Builtin Type Message", "Pass" ]] -- Gitee