Skip to content

Commit

Permalink
Merge changes from main branch mlcommons
Browse files Browse the repository at this point in the history
  • Loading branch information
anandhu-eng committed Sep 2, 2024
2 parents 3878a08 + 0df0b91 commit aa570f3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions javascripts/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
4 changes: 2 additions & 2 deletions javascripts/compare_results.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion javascripts/results_tablesorter.js
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,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)) {
Expand Down
2 changes: 1 addition & 1 deletion javascripts/topresults.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit aa570f3

Please sign in to comment.