Skip to content

Commit 52408fb

Browse files
authored
v0.22.0 (#381)
2 parents 5cfbd1a + 424b151 commit 52408fb

39 files changed

+833
-333
lines changed

.env.sample

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
VITE_API_ROOT=http://localhost:8000/api
44

55
# Backend
6-
HOST=0.0.0.0
6+
HOST=localhost
77
PORT=8000
88
DEV_SERVER_PORT=5173
99
DEV_SERVER_HOST=localhost

backend/ttnn_visualizer/csv_queries.py

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -565,14 +565,16 @@ class OpsPerformanceReportQueries:
565565
"input_0_memory",
566566
"inner_dim_block_size",
567567
"output_subblock_h",
568-
"output_subblock_w"
568+
"output_subblock_w",
569+
"advice",
569570
]
570571

571572
DEFAULT_SIGNPOST = None
572573
DEFAULT_IGNORE_SIGNPOSTS = None
573574
DEFAULT_MIN_PERCENTAGE = 0.5
574575
DEFAULT_ID_RANGE = None
575576
DEFAULT_NO_ADVICE = False
577+
DEFAULT_TRACING_MODE = False
576578

577579
@classmethod
578580
def generate_report(cls, session):
@@ -587,6 +589,7 @@ def generate_report(cls, session):
587589
cls.DEFAULT_ID_RANGE,
588590
csv_output_file,
589591
cls.DEFAULT_NO_ADVICE,
592+
cls.DEFAULT_TRACING_MODE,
590593
)
591594

592595
report = []
@@ -596,9 +599,14 @@ def generate_report(cls, session):
596599
reader = csv.reader(csvfile, delimiter=",")
597600
next(reader, None)
598601
for row in reader:
599-
report.append({
600-
column: row[index] for index, column in enumerate(cls.REPORT_COLUMNS)
601-
})
602+
processed_row = {
603+
column: row[index] for index, column in enumerate(cls.REPORT_COLUMNS) if index < len(row)
604+
}
605+
if "advice" in processed_row and processed_row["advice"]:
606+
processed_row["advice"] = processed_row["advice"].split(" • ")
607+
else:
608+
processed_row["advice"] = []
609+
report.append(processed_row)
602610
except csv.Error as e:
603611
raise DataFormatError() from e
604612
finally:

backend/ttnn_visualizer/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ wheel
1616
build
1717
PyYAML==6.0.2
1818
python-dotenv==1.0.1
19-
tt-perf-report==1.0.0
19+
tt-perf-report==1.0.3
2020

2121
# Dev dependencies
2222
mypy

backend/ttnn_visualizer/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class DefaultConfig(object):
5050
GUNICORN_WORKER_CLASS = os.getenv("GUNICORN_WORKER_CLASS", "gevent")
5151
GUNICORN_WORKERS = os.getenv("GUNICORN_WORKERS", "1")
5252
PORT = os.getenv("PORT", "8000")
53-
HOST = "0.0.0.0"
53+
HOST = "localhost"
5454
DEV_SERVER_PORT = "5173"
5555
DEV_SERVER_HOST = "localhost"
5656

docs/getting-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ using `pip install release_name.whl`.
6060

6161
## Running the application
6262

63-
After installation run `ttnn-visualizer` to start the application. If the app does not open automatically in your browser you can navigate to `http://0.0.0.0:8000`.
63+
After installation run `ttnn-visualizer` to start the application. If the app does not open automatically in your browser you can navigate to `http://localhost:8000`.
6464

6565
### Docker
6666

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "ttnn-visualzer",
33
"private": true,
4-
"version": "0.21.1",
4+
"version": "0.22.0",
55
"type": "module",
66
"scripts": {
77
"dev": "vite",

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[project]
22
name = "ttnn_visualizer"
33
authors = []
4-
version = "0.21.1"
4+
version = "0.22.0"
55
description = "TT Visualizer"
66
readme = "README.md"
77
requires-python = ">=3.12"
@@ -22,7 +22,7 @@ dependencies = [
2222
"flask-sqlalchemy==3.1.1",
2323
"PyYAML==6.0.2",
2424
"python-dotenv==1.0.1",
25-
"tt-perf-report==1.0.0"
25+
"tt-perf-report==1.0.3"
2626
]
2727

2828
classifiers = [

src/components/Collapsible.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const Collapsible: React.FC<React.PropsWithChildren<CollapsibleProps>> = ({
3838

3939
const icon = isOpenState ? IconNames.CARET_UP : IconNames.CARET_DOWN;
4040
return (
41-
<div className={`collapsible-component ${collapseClassName}`}>
41+
<div className={classNames('collapsible-component', collapseClassName)}>
4242
<div className='collapsible-controls'>
4343
{children && (
4444
<Button

src/components/ListItem.tsx

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@
44

55
import React from 'react';
66
import classNames from 'classnames';
7-
import { Icon, IconName, Intent, Tag, TagProps } from '@blueprintjs/core';
7+
import { Icon, IconName, Intent, TagProps } from '@blueprintjs/core';
88
import HighlightedText from './HighlightedText';
99
import '../scss/components/ListItem.scss';
10+
import MemoryTag from './MemoryTag';
1011

1112
interface ListItemProps {
1213
filterName: string;
@@ -49,14 +50,7 @@ const ListItem: React.FC<ListItemProps> = ({
4950

5051
{children}
5152

52-
{tags?.map((tag) => (
53-
<Tag
54-
key={tag.htmlTitle}
55-
className={tag.className}
56-
>
57-
{tag.htmlTitle}
58-
</Tag>
59-
))}
53+
{tags?.map((tag) => <MemoryTag memory={tag.htmlTitle} />)}
6054
</div>
6155
);
6256
};

0 commit comments

Comments
 (0)