Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
kit1980 committed Jan 3, 2025
1 parent f187d71 commit 565bcfe
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions torchci/pages/torchbench/userbenchmark.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -229,8 +229,10 @@ function Report({
// Return a list of metrics that are the union of cMetrics and tMetrics
cMetrics = cMetrics === undefined ? {} : cMetrics;
tMetrics = tMetrics === undefined ? {} : tMetrics;
let cMetricsData = "metrics" in cMetrics ? JSON.parse(cMetrics["metrics"]) : {};
let tMetricsData = "metrics" in tMetrics ? JSON.parse(tMetrics["metrics"]) : {};
let cMetricsData =
"metrics" in cMetrics ? JSON.parse(cMetrics["metrics"]) : {};
let tMetricsData =
"metrics" in tMetrics ? JSON.parse(tMetrics["metrics"]) : {};
let cMetricNames: string[] =
"metrics" in cMetrics ? Array.from(Object.keys(cMetricsData)) : [];
let tMetricNames: string[] =
Expand Down Expand Up @@ -303,7 +305,6 @@ function Report({
}
let cMetrics = QueryMetrics(getQueryUrl(queryControlParams));
cMetrics = cMetrics === undefined ? {} : cMetrics[0];

let tMetrics = QueryMetrics(getQueryUrl(queryTreatmentParams));
tMetrics = tMetrics === undefined ? {} : tMetrics[0];
const metrics: Record<string, any>[] = genABMetrics(cMetrics, tMetrics);
Expand Down

0 comments on commit 565bcfe

Please sign in to comment.