ttnn-visualizer 0.42.0__py3-none-any.whl → 0.43.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/__init__.py +0 -1
- ttnn_visualizer/app.py +15 -4
- ttnn_visualizer/csv_queries.py +82 -48
- ttnn_visualizer/decorators.py +38 -15
- ttnn_visualizer/exceptions.py +29 -1
- ttnn_visualizer/file_uploads.py +1 -0
- ttnn_visualizer/instances.py +42 -15
- ttnn_visualizer/models.py +12 -7
- ttnn_visualizer/remote_sqlite_setup.py +37 -30
- ttnn_visualizer/requirements.txt +1 -0
- ttnn_visualizer/serializers.py +1 -0
- ttnn_visualizer/settings.py +9 -5
- ttnn_visualizer/sftp_operations.py +144 -125
- ttnn_visualizer/sockets.py +9 -3
- ttnn_visualizer/static/assets/{allPaths-wwXsGKJ2.js → allPaths-BQN_j7ek.js} +1 -1
- ttnn_visualizer/static/assets/{allPathsLoader-BK9jqlVe.js → allPathsLoader-BvkkQ77q.js} +2 -2
- ttnn_visualizer/static/assets/index-B-fsa5Ru.js +1 -0
- ttnn_visualizer/static/assets/{index-Ybr1HJxx.js → index-Bng0kcmi.js} +69 -69
- ttnn_visualizer/static/assets/{index-C1rJBrMl.css → index-C-t6jBt9.css} +1 -1
- ttnn_visualizer/static/assets/index-DLOviMB1.js +1 -0
- ttnn_visualizer/static/assets/{splitPathsBySizeLoader-CauQGZHk.js → splitPathsBySizeLoader-Cl0NRdfL.js} +1 -1
- ttnn_visualizer/static/index.html +2 -2
- ttnn_visualizer/tests/__init__.py +0 -1
- ttnn_visualizer/tests/test_queries.py +0 -1
- ttnn_visualizer/tests/test_serializers.py +2 -2
- ttnn_visualizer/utils.py +7 -3
- ttnn_visualizer/views.py +250 -82
- {ttnn_visualizer-0.42.0.dist-info → ttnn_visualizer-0.43.0.dist-info}/METADATA +5 -1
- ttnn_visualizer-0.43.0.dist-info/RECORD +45 -0
- ttnn_visualizer/static/assets/index-BKzgFDAn.js +0 -1
- ttnn_visualizer/static/assets/index-BvSuWPlB.js +0 -1
- ttnn_visualizer-0.42.0.dist-info/RECORD +0 -45
- {ttnn_visualizer-0.42.0.dist-info → ttnn_visualizer-0.43.0.dist-info}/LICENSE +0 -0
- {ttnn_visualizer-0.42.0.dist-info → ttnn_visualizer-0.43.0.dist-info}/LICENSE_understanding.txt +0 -0
- {ttnn_visualizer-0.42.0.dist-info → ttnn_visualizer-0.43.0.dist-info}/WHEEL +0 -0
- {ttnn_visualizer-0.42.0.dist-info → ttnn_visualizer-0.43.0.dist-info}/entry_points.txt +0 -0
- {ttnn_visualizer-0.42.0.dist-info → ttnn_visualizer-0.43.0.dist-info}/top_level.txt +0 -0
@@ -1 +1 @@
|
|
1
|
-
import{_ as o,a as _,b as i,p as c,I as u}from"./index-
|
1
|
+
import{_ as o,a as _,b as i,p as c,I as u}from"./index-Bng0kcmi.js";var p=function(n,s){return o(void 0,void 0,void 0,function(){var a,r;return _(this,function(e){switch(e.label){case 0:return a=c(n),s!==u.STANDARD?[3,2]:[4,i(()=>import("./index-DLOviMB1.js").then(t=>t.I),[])];case 1:return r=e.sent(),[3,4];case 2:return[4,i(()=>import("./index-B-fsa5Ru.js").then(t=>t.I),[])];case 3:r=e.sent(),e.label=4;case 4:return[2,r[a]]}})})};export{p as splitPathsBySizeLoader};
|
@@ -34,8 +34,8 @@
|
|
34
34
|
/* SERVER_CONFIG */
|
35
35
|
</script>
|
36
36
|
|
37
|
-
<script type="module" crossorigin src="/static/assets/index-
|
38
|
-
<link rel="stylesheet" crossorigin href="/static/assets/index-
|
37
|
+
<script type="module" crossorigin src="/static/assets/index-Bng0kcmi.js"></script>
|
38
|
+
<link rel="stylesheet" crossorigin href="/static/assets/index-C-t6jBt9.css">
|
39
39
|
</head>
|
40
40
|
<body>
|
41
41
|
|
@@ -221,7 +221,6 @@ class TestDatabaseQueries(unittest.TestCase):
|
|
221
221
|
str(context.exception),
|
222
222
|
)
|
223
223
|
|
224
|
-
|
225
224
|
def test_init_with_valid_local_instance(self):
|
226
225
|
with tempfile.NamedTemporaryFile(suffix=".sqlite") as temp_db_file:
|
227
226
|
connection = sqlite3.connect(temp_db_file.name)
|
@@ -361,7 +361,7 @@ class TestSerializers(unittest.TestCase):
|
|
361
361
|
1,
|
362
362
|
1000,
|
363
363
|
BufferType.DRAM,
|
364
|
-
[200, 300]
|
364
|
+
[200, 300],
|
365
365
|
)
|
366
366
|
]
|
367
367
|
devices = [
|
@@ -415,7 +415,7 @@ class TestSerializers(unittest.TestCase):
|
|
415
415
|
"operation_id": 1,
|
416
416
|
"producers": [2],
|
417
417
|
"shape": "shape1",
|
418
|
-
"device_addresses": [200, 300]
|
418
|
+
"device_addresses": [200, 300],
|
419
419
|
}
|
420
420
|
],
|
421
421
|
"l1_sizes": [256],
|
ttnn_visualizer/utils.py
CHANGED
@@ -88,13 +88,16 @@ def get_profiler_path(profiler_name, current_app, remote_connection=None):
|
|
88
88
|
else:
|
89
89
|
base_dir = local_dir
|
90
90
|
|
91
|
-
profiler_path =
|
91
|
+
profiler_path = (
|
92
|
+
base_dir / current_app.config["PROFILER_DIRECTORY_NAME"] / profiler_name
|
93
|
+
)
|
92
94
|
target_path = profiler_path / database_file_name
|
93
95
|
|
94
96
|
return str(target_path)
|
95
97
|
else:
|
96
98
|
return ""
|
97
99
|
|
100
|
+
|
98
101
|
def get_npe_path(npe_name, current_app):
|
99
102
|
local_dir = Path(current_app.config["LOCAL_DATA_DIRECTORY"])
|
100
103
|
|
@@ -107,7 +110,9 @@ def get_cluster_descriptor_path(instance):
|
|
107
110
|
if not instance.profiler_path:
|
108
111
|
return None
|
109
112
|
|
110
|
-
cluster_descriptor_path = Path(instance.profiler_path).parent / Path(
|
113
|
+
cluster_descriptor_path = Path(instance.profiler_path).parent / Path(
|
114
|
+
"cluster_descriptor.yaml"
|
115
|
+
)
|
111
116
|
|
112
117
|
if not cluster_descriptor_path.exists():
|
113
118
|
return None
|
@@ -191,4 +196,3 @@ def read_version_from_package_json() -> str:
|
|
191
196
|
raise FileNotFoundError(f"The file {file_path} was not found.")
|
192
197
|
except KeyError:
|
193
198
|
raise KeyError("The 'version' key was not found in the package.json file.")
|
194
|
-
|