Skip to content

Commit 457c4af

Browse files
committed
Merge branch 'develop' into spilt
2 parents a47d29a + e0bd98e commit 457c4af

File tree

64 files changed

+10647
-723
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+10647
-723
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ repos:
33
rev: 23.1.0
44
hooks:
55
- id: black
6-
language_version: python3
6+
language_version: python3

README.md

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -59,29 +59,19 @@ After executing, `graph_net.torch.test_compiler` will:
5959
3. Executing the compiled model and collecting its runtime and outputs.
6060
4. Conduct speedup by comparing the compiled results against the baseline (if no execution failure occurs).
6161

62-
**Step 2: Generate JSON Record**
62+
**Step 2: Analysis**
6363

64-
Extract runtime, correctness, and failure information from benchmark logs:
65-
66-
```bash
67-
python -m graph_net.log2json \
68-
--log-file $GRAPH_NET_BENCHMARK_PATH/log.log \
69-
--output-dir $GRAPH_NET_BENCHMARK_PATH/JSON_results/
70-
```
71-
72-
**Step 3: Analysis**
73-
74-
Use the three scripts `graph_net.plot_St`, `graph_net.plot_ESt` and `graph_net.plot_violin` to generate St plot, ESt plot, and [violin plot](https://en.m.wikipedia.org/wiki/Violin_plot) based on the JSON results.
64+
Use the three scripts `graph_net.plot_St`, `graph_net.plot_ESt` and `graph_net.plot_violin` to generate St plot, ESt plot, and [violin plot](https://en.m.wikipedia.org/wiki/Violin_plot) based on speedup, correctness and runtime information from benchmark logs.
7565

7666
```bash
7767
python -m graph_net.plot_St \
78-
--benchmark-path $GRAPH_NET_BENCHMARK_PATH/JSON_results/ \
68+
--benchmark-path $GRAPH_NET_BENCHMARK_PATH/log.log \
7969
--output-dir $GRAPH_NET_BENCHMARK_PATH \
8070
--negative-speedup-penalty penalty/power/for/negative/speedup \
8171
--fpdb base/penalty/for/severe/errors
8272

8373
python -m graph_net.plot_ESt \
84-
--benchmark-path $GRAPH_NET_BENCHMARK_PATH/JSON_results/ \
74+
--benchmark-path $GRAPH_NET_BENCHMARK_PATH/log.log \
8575
--output-dir $GRAPH_NET_BENCHMARK_PATH \
8676
--negative-speedup-penalty penalty/power/for/negative/speedup \
8777
--fpdb base/penalty/for/severe/errors

docs/README_contribute.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ import graph_net
4949
model = ...
5050

5151
# Extract your own model
52-
model = graph_net.torch.extract(name="model_name", dynamic="True")(model)
52+
model = graph_net.torch.extract(name="model_name", dynamic=True)(model)
5353
```
5454

5555
After running, the extracted graph will be saved to: `$GRAPH_NET_EXTRACT_WORKSPACE/model_name/`.

0 commit comments

Comments
 (0)