ttnn-visualizer 0.60.0__py3-none-any.whl → 0.61.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -507,11 +507,16 @@ class OpsPerformanceReportQueries:
507
507
  reader = csv.reader(csvfile, delimiter=",")
508
508
  next(reader, None)
509
509
  for row in reader:
510
+ op_id = int(row[0])
511
+ # IDs in result column one correspond to row numbers in ops perf results csv
512
+ idx = op_id - 2
513
+
510
514
  processed_row = {
511
515
  column: row[index]
512
516
  for index, column in enumerate(cls.REPORT_COLUMNS)
513
517
  if index < len(row)
514
518
  }
519
+
515
520
  if "advice" in processed_row and processed_row["advice"]:
516
521
  processed_row["advice"] = processed_row["advice"].split(
517
522
  " • "
@@ -519,15 +524,20 @@ class OpsPerformanceReportQueries:
519
524
  else:
520
525
  processed_row["advice"] = []
521
526
 
522
- # Get the op type from the raw file for this row as it is not returned from tt-perf-report
523
- op_id = int(row[0])
524
- raw_idx = op_id - 2
525
- if 0 <= raw_idx < len(ops_perf_results):
526
- processed_row["op_type"] = ops_perf_results[
527
- raw_idx
528
- ].get("OP TYPE")
527
+ for key, value in cls.PASSTHROUGH_COLUMNS.items():
528
+ if 0 <= idx < len(ops_perf_results):
529
+
530
+ processed_row[key] = ops_perf_results[idx][value]
529
531
  else:
530
- processed_row["op_type"] = None
532
+ processed_row[key] = None
533
+
534
+ # Get the op type from the raw file for this row as it is not returned from tt-perf-report
535
+ if 0 <= idx < len(ops_perf_results):
536
+ processed_row["op_type"] = ops_perf_results[idx].get(
537
+ "OP TYPE"
538
+ )
539
+ else:
540
+ processed_row["op_type"] = None
531
541
 
532
542
  report.append(processed_row)
533
543
  except csv.Error as e:
@@ -1 +1 @@
1
- import{I as s}from"./index-DXdc2oG2.js";import{I as r}from"./index-BgzQ1XP9.js";import{p as n,I as c}from"./index-Dbp4OE4r.js";function p(t,a){const o=n(t);return a===c.STANDARD?s[o]:r[o]}export{s as IconSvgPaths16,r as IconSvgPaths20,p as getIconPaths};
1
+ import{I as s}from"./index-DXdc2oG2.js";import{I as r}from"./index-BgzQ1XP9.js";import{p as n,I as c}from"./index-BB1xqCSF.js";function p(t,a){const o=n(t);return a===c.STANDARD?s[o]:r[o]}export{s as IconSvgPaths16,r as IconSvgPaths20,p as getIconPaths};
@@ -0,0 +1,2 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/allPaths-CoeJF6Is.js","assets/index-DXdc2oG2.js","assets/index-BgzQ1XP9.js","assets/index-BB1xqCSF.js","assets/index-OTxEdcXc.css"])))=>i.map(i=>d[i]);
2
+ import{_ as e}from"./index-BB1xqCSF.js";const s=async(t,a)=>{const{getIconPaths:o}=await e(async()=>{const{getIconPaths:r}=await import("./allPaths-CoeJF6Is.js");return{getIconPaths:r}},__vite__mapDeps([0,1,2,3,4]));return o(t,a)};export{s as allPathsLoader};