ttnn-visualizer 0.28.0__py3-none-any.whl → 0.29.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.
- ttnn_visualizer/sessions.py +8 -8
- ttnn_visualizer/static/assets/{allPaths-DGdUWICT.js → allPaths-CJHbl9k5.js} +1 -1
- ttnn_visualizer/static/assets/{allPathsLoader-BSYo-ZTH.js → allPathsLoader-BMROdgRm.js} +2 -2
- ttnn_visualizer/static/assets/{index-DWVfq2z5.css → index-CINMcROY.css} +2 -2
- ttnn_visualizer/static/assets/{index-CYZZ70nJ.js → index-DRqEueCH.js} +170 -170
- ttnn_visualizer/static/assets/{splitPathsBySizeLoader-hHE0y-FQ.js → splitPathsBySizeLoader-Bff1kHt3.js} +1 -1
- ttnn_visualizer/static/index.html +2 -2
- ttnn_visualizer/utils.py +15 -0
- ttnn_visualizer/views.py +29 -16
- {ttnn_visualizer-0.28.0.dist-info → ttnn_visualizer-0.29.0.dist-info}/METADATA +1 -1
- {ttnn_visualizer-0.28.0.dist-info → ttnn_visualizer-0.29.0.dist-info}/RECORD +16 -16
- {ttnn_visualizer-0.28.0.dist-info → ttnn_visualizer-0.29.0.dist-info}/LICENSE +0 -0
- {ttnn_visualizer-0.28.0.dist-info → ttnn_visualizer-0.29.0.dist-info}/LICENSE_understanding.txt +0 -0
- {ttnn_visualizer-0.28.0.dist-info → ttnn_visualizer-0.29.0.dist-info}/WHEEL +0 -0
- {ttnn_visualizer-0.28.0.dist-info → ttnn_visualizer-0.29.0.dist-info}/entry_points.txt +0 -0
- {ttnn_visualizer-0.28.0.dist-info → ttnn_visualizer-0.29.0.dist-info}/top_level.txt +0 -0
ttnn_visualizer/sessions.py
CHANGED
@@ -271,17 +271,17 @@ def create_random_instance_id():
|
|
271
271
|
|
272
272
|
|
273
273
|
def create_instance_from_local_paths(report_path, profiler_path):
|
274
|
-
_report_path = Path(report_path)
|
275
|
-
_profiler_path = Path(profiler_path)
|
274
|
+
_report_path = Path(report_path) if report_path else None
|
275
|
+
_profiler_path = Path(profiler_path) if profiler_path else None
|
276
276
|
|
277
|
-
if not _report_path.exists() or not _report_path.is_dir():
|
277
|
+
if _report_path and (not _report_path.exists() or not _report_path.is_dir()):
|
278
278
|
raise InvalidReportPath()
|
279
279
|
|
280
|
-
if not _profiler_path.exists() or not _profiler_path.is_dir():
|
280
|
+
if _profiler_path and (not _profiler_path.exists() or not _profiler_path.is_dir()):
|
281
281
|
raise InvalidProfilerPath()
|
282
282
|
|
283
|
-
report_name = _report_path.parts[-1] if len(_report_path.parts) > 2 else ""
|
284
|
-
profile_name = _profiler_path.parts[-1] if len(_profiler_path.parts) > 2 else ""
|
283
|
+
report_name = _report_path.parts[-1] if _report_path and len(_report_path.parts) > 2 else ""
|
284
|
+
profile_name = _profiler_path.parts[-1] if _profiler_path and len(_profiler_path.parts) > 2 else ""
|
285
285
|
session_data = InstanceTable(
|
286
286
|
instance_id=create_random_instance_id(),
|
287
287
|
active_report={
|
@@ -289,8 +289,8 @@ def create_instance_from_local_paths(report_path, profiler_path):
|
|
289
289
|
"profile_name": profile_name,
|
290
290
|
"npe_name": None,
|
291
291
|
},
|
292
|
-
report_path=f"{
|
293
|
-
profiler_path=profiler_path,
|
292
|
+
report_path=f"{_report_path}/db.sqlite" if report_path else None,
|
293
|
+
profiler_path=profiler_path if profiler_path else None,
|
294
294
|
remote_connection=None,
|
295
295
|
remote_folder=None,
|
296
296
|
remote_profile_folder=None,
|
@@ -1 +1 @@
|
|
1
|
-
import{I as n}from"./index-BVMreIQm.js";import{I as e}from"./index-Do7YB6C4.js";import{p as r,I as s}from"./index-
|
1
|
+
import{I as n}from"./index-BVMreIQm.js";import{I as e}from"./index-Do7YB6C4.js";import{p as r,I as s}from"./index-DRqEueCH.js";function I(o,t){var a=r(o);return t===s.STANDARD?n[a]:e[a]}function p(o){return r(o)}export{n as IconSvgPaths16,e as IconSvgPaths20,I as getIconPaths,p as iconNameToPathsRecordKey};
|
@@ -1,2 +1,2 @@
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/allPaths-
|
2
|
-
import{_ as o,a as n,b as i}from"./index-
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/allPaths-CJHbl9k5.js","assets/index-BVMreIQm.js","assets/index-Do7YB6C4.js","assets/index-DRqEueCH.js","assets/index-CINMcROY.css"])))=>i.map(i=>d[i]);
|
2
|
+
import{_ as o,a as n,b as i}from"./index-DRqEueCH.js";var _=function(e,a){return o(void 0,void 0,void 0,function(){var t;return n(this,function(r){switch(r.label){case 0:return[4,i(()=>import("./allPaths-CJHbl9k5.js"),__vite__mapDeps([0,1,2,3,4]))];case 1:return t=r.sent().getIconPaths,[2,t(e,a)]}})})};export{_ as allPathsLoader};
|