Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add visualizer for MLPerf inference results #3

Merged
merged 3 commits into from
Sep 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -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)) {
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
Loading