From df3fb58d71eeb830ef488216368add5e2abd987c Mon Sep 17 00:00:00 2001 From: Arjun Suresh Date: Mon, 2 Sep 2024 12:37:56 +0100 Subject: [PATCH 1/3] Fix objstore version --- javascripts/common.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/javascripts/common.js b/javascripts/common.js index 3dcfffb..0bab6ec 100644 --- a/javascripts/common.js +++ b/javascripts/common.js @@ -15,7 +15,8 @@ models_edge = []; const dbName = "mlperf_inference"; //config results_version; defined in config.js //const dbVersion = 4; defined in config.js -const objStore = "inference_results"; +var results_version = (results_version === undefined)? "v4.1": results_version; +const objStore = "inference_results_"+results_version; //results_version defined in config.js async function fetchAndStoreData(db) { try { From cb496441da46e724bd83fb595e5b40c8b84d978d Mon Sep 17 00:00:00 2001 From: Arjun Suresh Date: Mon, 2 Sep 2024 12:42:03 +0100 Subject: [PATCH 2/3] Fix objstore version --- javascripts/common.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/javascripts/common.js b/javascripts/common.js index 0bab6ec..ed33498 100644 --- a/javascripts/common.js +++ b/javascripts/common.js @@ -15,12 +15,11 @@ models_edge = []; const dbName = "mlperf_inference"; //config results_version; defined in config.js //const dbVersion = 4; defined in config.js -var results_version = (results_version === undefined)? "v4.1": results_version; const objStore = "inference_results_"+results_version; //results_version defined in config.js async function fetchAndStoreData(db) { try { - const data = await $.getJSON("https://raw.githubusercontent.com/GATEOverflow/inference_results_"+result_version+"/main/summary_results.json"); + const data = await $.getJSON("https://raw.githubusercontent.com/GATEOverflow/inference_results_"+results_version+"/main/summary_results.json"); // Begin a transaction to save data in IndexedDB const transaction = db.transaction([objStore], "readwrite"); From 130303fc0dc586ebb69717aeec514136d5393b87 Mon Sep 17 00:00:00 2001 From: Arjun Suresh Date: Mon, 2 Sep 2024 12:52:15 +0100 Subject: [PATCH 3/3] Fix results version --- javascripts/compare_results.js | 4 ++-- javascripts/results_tablesorter.js | 2 +- javascripts/topresults.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/javascripts/compare_results.js b/javascripts/compare_results.js index 8224897..6f7392e 100644 --- a/javascripts/compare_results.js +++ b/javascripts/compare_results.js @@ -115,8 +115,8 @@ $(document).ready(function() { */ readAllData().then(function(allData) { // console.log(allData); - sysversion1 = result_version; - sysversion2 = result_version; + sysversion1 = results_version; + sysversion2 = results_version; reConstructTables(system1, sysversion1, system2, sysversion2, selected_models, allData); }).catch(function(error) { console.error(error); diff --git a/javascripts/results_tablesorter.js b/javascripts/results_tablesorter.js index b2a32b4..04828b6 100644 --- a/javascripts/results_tablesorter.js +++ b/javascripts/results_tablesorter.js @@ -305,7 +305,7 @@ function constructSummaryTable(data, category, division, with_power) { } function get_scenario_td_data(data, scenario, with_power, accuracy=false) { - let location_pre = `https://github.com/mlcommons/inference_results_${result_version}/tree/main/`; + let location_pre = `https://github.com/mlcommons/inference_results_${results_version}/tree/main/`; let result_link_text = ``; if(!data || !data.hasOwnProperty(scenario)) { diff --git a/javascripts/topresults.js b/javascripts/topresults.js index fc6e476..9414699 100644 --- a/javascripts/topresults.js +++ b/javascripts/topresults.js @@ -7,7 +7,7 @@ $( document ).on( "click", "#results thead th", function() { var device_column_name = "Accelerator"; var device_count_column_name = "#a"; var additional_metric_column_name = ""; -var version = result_version; +var version = results_version; var openmodel=false; var sortcolumnindex = 6; var perfcolumnindex = 7; // starting from 1