diff --git a/javascripts/common.js b/javascripts/common.js index 3dcfffb..ed33498 100644 --- a/javascripts/common.js +++ b/javascripts/common.js @@ -15,11 +15,11 @@ models_edge = []; const dbName = "mlperf_inference"; //config results_version; defined in config.js //const dbVersion = 4; defined in config.js -const objStore = "inference_results"; +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"); 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