ttnn-visualizer 0.53.0__py3-none-any.whl → 0.55.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.
@@ -1 +1 @@
1
- import{p as r,I as s,_ as a}from"./index-ASyuPW18.js";const n=async(o,_)=>{const i=r(o);let t;return _===s.STANDARD?t=await a(()=>import("./index-CnPrfHYh.js").then(e=>e.I),[]):t=await a(()=>import("./index-Cnc1EkDo.js").then(e=>e.I),[]),t[i]};export{n as splitPathsBySizeLoader};
1
+ import{p as r,I as s,_ as a}from"./index-BvcHTS9m.js";const n=async(o,_)=>{const i=r(o);let t;return _===s.STANDARD?t=await a(()=>import("./index-CnPrfHYh.js").then(e=>e.I),[]):t=await a(()=>import("./index-Cnc1EkDo.js").then(e=>e.I),[]),t[i]};export{n as splitPathsBySizeLoader};
@@ -34,8 +34,8 @@
34
34
  /* SERVER_CONFIG */
35
35
  </script>
36
36
 
37
- <script type="module" crossorigin src="/static/assets/index-ASyuPW18.js"></script>
38
- <link rel="stylesheet" crossorigin href="/static/assets/index-7VC6vzqu.css">
37
+ <script type="module" crossorigin src="/static/assets/index-BvcHTS9m.js"></script>
38
+ <link rel="stylesheet" crossorigin href="/static/assets/index-BLaRkCu7.css">
39
39
  </head>
40
40
  <body>
41
41
 
ttnn_visualizer/views.py CHANGED
@@ -68,6 +68,7 @@ from ttnn_visualizer.utils import (
68
68
  create_path_resolver,
69
69
  get_cluster_descriptor_path,
70
70
  read_last_synced_file,
71
+ str_to_bool,
71
72
  timer,
72
73
  )
73
74
 
@@ -687,6 +688,8 @@ def get_performance_results_report(instance: Instance):
687
688
  )
688
689
 
689
690
  name = request.args.get("name", None)
691
+ signpost = request.args.get("signpost", None)
692
+ stack_by_in0 = str_to_bool(request.args.get("stack_by_in0", "true"))
690
693
 
691
694
  if name and not current_app.config["SERVER_MODE"]:
692
695
  performance_path = Path(instance.performance_path).parent / name
@@ -694,7 +697,11 @@ def get_performance_results_report(instance: Instance):
694
697
  logger.info(f"************ Performance path set to {instance.performance_path}")
695
698
 
696
699
  try:
697
- report = OpsPerformanceReportQueries.generate_report(instance)
700
+ report = OpsPerformanceReportQueries.generate_report(
701
+ instance,
702
+ stack_by_in0=stack_by_in0,
703
+ signpost=signpost,
704
+ )
698
705
  except DataFormatError:
699
706
  return Response(status=HTTPStatus.UNPROCESSABLE_ENTITY)
700
707
 
@@ -1300,16 +1307,15 @@ def get_npe_data(instance: Instance):
1300
1307
  if compressed_path and compressed_path.exists():
1301
1308
  with open(compressed_path, "rb") as file:
1302
1309
  compressed_data = file.read()
1303
- uncompressed_data = zstd.uncompress(compressed_data)
1304
- npe_data = json.loads(uncompressed_data)
1310
+ npe_data = zstd.uncompress(compressed_data)
1305
1311
  else:
1306
1312
  with open(uncompressed_path, "r") as file:
1307
- npe_data = json.load(file)
1308
- except json.JSONDecodeError as e:
1309
- logger.error(f"Invalid JSON in NPE file: {e}")
1313
+ npe_data = file.read()
1314
+ except Exception as e:
1315
+ logger.error(f"Error reading NPE file: {e}")
1310
1316
  return Response(status=HTTPStatus.UNPROCESSABLE_ENTITY)
1311
1317
 
1312
- return Response(orjson.dumps(npe_data), mimetype="application/json")
1318
+ return Response(npe_data, mimetype="application/json")
1313
1319
 
1314
1320
 
1315
1321
  @api.route("/notify", methods=["POST"])
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ttnn_visualizer
3
- Version: 0.53.0
3
+ Version: 0.55.0
4
4
  Summary: TT-NN Visualizer
5
5
  Classifier: Programming Language :: Python :: 3
6
6
  Classifier: License :: OSI Approved :: MIT License
@@ -23,7 +23,7 @@ Requires-Dist: pydantic_core==2.27.1
23
23
  Requires-Dist: pydantic==2.10.3
24
24
  Requires-Dist: python-dotenv==1.0.1
25
25
  Requires-Dist: PyYAML==6.0.2
26
- Requires-Dist: tt-perf-report==1.1.2
26
+ Requires-Dist: tt-perf-report==1.1.5
27
27
  Requires-Dist: uvicorn==0.30.1
28
28
  Requires-Dist: zstd==1.5.7.0
29
29
  Provides-Extra: dev
@@ -1,6 +1,6 @@
1
1
  ttnn_visualizer/__init__.py,sha256=FCQeTWnXsf-Wx-fay53-lQsm0y5-GcPMUmzhE5upDx0,93
2
2
  ttnn_visualizer/app.py,sha256=w5jkzJO6d6SKKrUKnWJlBu3Jw8K-aHCaZ1wsxhlne3o,8793
3
- ttnn_visualizer/csv_queries.py,sha256=FX6gGkotZGk8hN6hVreuCf1X2h-JRVqs4BgRMeoZCkQ,16843
3
+ ttnn_visualizer/csv_queries.py,sha256=g8nZOOl0yhn6f-8visNsdyynAV0YzG-TARavmkqlFTg,18841
4
4
  ttnn_visualizer/decorators.py,sha256=6xBg2J6kJrwc01fcHepLbFJoUhcEKBL410gfaR8YZuM,5383
5
5
  ttnn_visualizer/enums.py,sha256=SEIqp1tlc_zw2vQ8nHH9YTaV0m3Cb8fjn_goqz5wurE,203
6
6
  ttnn_visualizer/exceptions.py,sha256=KVZzb7YaWbq51DNMKPBcJHwG74RMYj_29WTSYOlXXeU,2096
@@ -16,16 +16,16 @@ ttnn_visualizer/sftp_operations.py,sha256=9HwbPJPSO1UUQ98d5zeWAkEwR0zFPryUakcI68
16
16
  ttnn_visualizer/sockets.py,sha256=_Hdne33r4FrB2tg58Vw87FWLbgQ_ikICVp4o1Mkv2mo,4789
17
17
  ttnn_visualizer/ssh_client.py,sha256=-GS2_1tdlUqVoLfRS02i3_o1fQaM39UQN-jtAnPBmzQ,13511
18
18
  ttnn_visualizer/utils.py,sha256=_W990vRnup9zlWJ-g_Bggyo-wDjCYF49p0nPxWNgxrE,12934
19
- ttnn_visualizer/views.py,sha256=9hjDptp8aGenFmXm6JvW35cMMo1NGbzJh39P1Suop6Q,46653
20
- ttnn_visualizer/static/index.html,sha256=If2IZPZ4lL_uK57OG_CGBTJbt-Yemtsd1z9DiXwLXAg,1135
21
- ttnn_visualizer/static/assets/allPaths-BlkeJGrc.js,sha256=ejLwxM5AGzkGcsPQGR6IPsdYy0O7p5pP75-BOIdBTWk,255
22
- ttnn_visualizer/static/assets/allPathsLoader--1bCnHgW.js,sha256=rOFgBKKWbXKI_EOfFSo5JEW3yqGCXH_hE5ghuXFdUD8,477
23
- ttnn_visualizer/static/assets/index-7VC6vzqu.css,sha256=zm9zPX6h0-gMSd8Bw1pwXO_6aAV2tjn7tUXaKtF_2XM,625750
24
- ttnn_visualizer/static/assets/index-ASyuPW18.js,sha256=QVfG5ZEyollLpQqOLnPAoCDqlfs9noNRv8bDud-RDkQ,7899417
19
+ ttnn_visualizer/views.py,sha256=jyLUlzEml9SqXPMbKKR7ARzpG3aM_7dBZZVn339Z6-U,46789
20
+ ttnn_visualizer/static/index.html,sha256=Idd-ijjDrhF1vEEVn1WZ1NL2HmFk7EaI7cJhAhtHWdc,1135
21
+ ttnn_visualizer/static/assets/allPaths-BmK4MbG-.js,sha256=FMqgXv5s86Ye6sAgZv9XKWEi0wAd9a24hJx0AlrLm64,255
22
+ ttnn_visualizer/static/assets/allPathsLoader-C40Lhr5N.js,sha256=CCwDjdRX-PXIceoCap0-p5xsCuxokqkHANM075noOuk,477
23
+ ttnn_visualizer/static/assets/index-BLaRkCu7.css,sha256=3VANsUO0hbQob_sM-9g2QrM_mX_Fq2zF1UlqZJo6oCE,626085
24
+ ttnn_visualizer/static/assets/index-BvcHTS9m.js,sha256=8gcpf6HkJpu7Sd_WWGCMr62BmSAP3pC84UiXXtBiWeg,7905507
25
25
  ttnn_visualizer/static/assets/index-CnPrfHYh.js,sha256=xtrmUrKcMSwTBA7zqXJ6I_L70LzG9DkO-zbC3aWJS8g,289282
26
26
  ttnn_visualizer/static/assets/index-Cnc1EkDo.js,sha256=m-gmIOT0AsJcaW0TVjRpOwSm52Dfp4ZDcrdnIS4qBHA,298140
27
27
  ttnn_visualizer/static/assets/site-BTBrvHC5.webmanifest,sha256=Uy_XmnGuYFVf-OZuma2NvgEPdrCrevb3HZvaxSIHoA0,456
28
- ttnn_visualizer/static/assets/splitPathsBySizeLoader-mysTBru-.js,sha256=5lWSUPy0tS3RjRvDCqvGZeiwGlMok1IpTg1XRCNJKwY,281
28
+ ttnn_visualizer/static/assets/splitPathsBySizeLoader-Sz-ZDH_X.js,sha256=lGZx3cqt6U9W3VHG_ocHraf2r4idQu3Me7r_UdIBWm0,281
29
29
  ttnn_visualizer/static/favicon/android-chrome-192x192.png,sha256=BZWA09Zxaa3fXbaeS6nhWo2e-DUSjm9ElzNQ_xTB5XU,6220
30
30
  ttnn_visualizer/static/favicon/android-chrome-512x512.png,sha256=HBiJSZyguB3o8fMJuqIGcpeBy_9JOdImme3wD02UYCw,62626
31
31
  ttnn_visualizer/static/favicon/favicon-32x32.png,sha256=Zw201qUsczQv1UvoQvJf5smQ2ss10xaTeWxmQNYCGtY,480
@@ -34,10 +34,10 @@ ttnn_visualizer/static/sample-data/cluster-desc.yaml,sha256=LMxOmsRUXtVVU5ogzYkX
34
34
  ttnn_visualizer/tests/__init__.py,sha256=FCQeTWnXsf-Wx-fay53-lQsm0y5-GcPMUmzhE5upDx0,93
35
35
  ttnn_visualizer/tests/test_queries.py,sha256=HqaDXwudZpXiigJdHkdJP8oiUc-PtHASbpLnQQpbD7A,13792
36
36
  ttnn_visualizer/tests/test_serializers.py,sha256=IJekAZRBpyOr_Ffp0dqSrnhFOU_ZZ8pHma_JO0j23TQ,18762
37
- ttnn_visualizer-0.53.0.dist-info/licenses/LICENSE,sha256=bapl7NysYmv8aYSVxr5qFDya0vCqppyjkyyNJYosBdc,20044
38
- ttnn_visualizer-0.53.0.dist-info/licenses/LICENSE_understanding.txt,sha256=pymi-yb_RvYM9p2ZA4iSNsImcvhDBBxlGuJCY9dTq7M,233
39
- ttnn_visualizer-0.53.0.dist-info/METADATA,sha256=yUdMfOli-Bbzsk3InJD68QsmwA0Lbh9vTv2I8dC-Rrs,7780
40
- ttnn_visualizer-0.53.0.dist-info/WHEEL,sha256=lTU6B6eIfYoiQJTZNc-fyaR6BpL6ehTzU3xGYxn2n8k,91
41
- ttnn_visualizer-0.53.0.dist-info/entry_points.txt,sha256=QpuUpkmQ_mEHJTMqOBdU0MH2Z4WF_9iFsGACeyyAO1E,61
42
- ttnn_visualizer-0.53.0.dist-info/top_level.txt,sha256=M1EGkvDOuIfbhDbcUdz2-TSdmCtDoQ2Uyag9k5JLDSY,16
43
- ttnn_visualizer-0.53.0.dist-info/RECORD,,
37
+ ttnn_visualizer-0.55.0.dist-info/licenses/LICENSE,sha256=bapl7NysYmv8aYSVxr5qFDya0vCqppyjkyyNJYosBdc,20044
38
+ ttnn_visualizer-0.55.0.dist-info/licenses/LICENSE_understanding.txt,sha256=pymi-yb_RvYM9p2ZA4iSNsImcvhDBBxlGuJCY9dTq7M,233
39
+ ttnn_visualizer-0.55.0.dist-info/METADATA,sha256=y4Fn5_WtNqMtG1wynhEJsk6tculjYx0eyktQ8GrFKyg,7780
40
+ ttnn_visualizer-0.55.0.dist-info/WHEEL,sha256=lTU6B6eIfYoiQJTZNc-fyaR6BpL6ehTzU3xGYxn2n8k,91
41
+ ttnn_visualizer-0.55.0.dist-info/entry_points.txt,sha256=QpuUpkmQ_mEHJTMqOBdU0MH2Z4WF_9iFsGACeyyAO1E,61
42
+ ttnn_visualizer-0.55.0.dist-info/top_level.txt,sha256=M1EGkvDOuIfbhDbcUdz2-TSdmCtDoQ2Uyag9k5JLDSY,16
43
+ ttnn_visualizer-0.55.0.dist-info/RECORD,,
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/allPaths-BlkeJGrc.js","assets/index-CnPrfHYh.js","assets/index-Cnc1EkDo.js","assets/index-ASyuPW18.js","assets/index-7VC6vzqu.css"])))=>i.map(i=>d[i]);
2
- import{_ as e}from"./index-ASyuPW18.js";const s=async(t,a)=>{const{getIconPaths:o}=await e(async()=>{const{getIconPaths:r}=await import("./allPaths-BlkeJGrc.js");return{getIconPaths:r}},__vite__mapDeps([0,1,2,3,4]));return o(t,a)};export{s as allPathsLoader};