Skip to content

Commit d9b01dd

Browse files
committed
rename graph_net/torch/sample_passes/ to rename graph_net/torch/sample_pass/
1 parent 4321b73 commit d9b01dd

File tree

3 files changed

+0
-97
lines changed

3 files changed

+0
-97
lines changed

graph_net/tools/dimension_symbolizer.sh

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,5 @@
11
#!/bin/bash
22

3-
# GRAPH_NET_ROOT=$(python3 -c "import graph_net; import os; print(
4-
# os.path.dirname(os.path.dirname(graph_net.__file__)))")
5-
6-
# python3 -m graph_net.model_path_handler \
7-
# --model-path-list $GRAPH_NET_ROOT/graph_net/config/small_sample_list_for_get_fusible_subgraph.txt \
8-
# --handler-config=$(base64 -w 0 <<EOF
9-
# {
10-
# "handler_path": "$GRAPH_NET_ROOT/graph_net/torch/sample_passes/dimension_symbolizer.py",
11-
# "handler_class_name": "DimensionSymbolizer",
12-
# "handler_config": {
13-
# "resume": false,
14-
# "output_dir": "/tmp/workspace_dimension_symbolizer",
15-
# "model_path_prefix": "$GRAPH_NET_ROOT",
16-
# "limits_handled_models": 10,
17-
# "last_model_log_file": "/tmp/a.py"
18-
# }
19-
# }
20-
# EOF
21-
# )
22-
233
GRAPH_NET_ROOT=$(python3 -c "import graph_net; import os; print(
244
os.path.dirname(os.path.dirname(graph_net.__file__)))")
255

graph_net/tools/fusible_subgraph_generate.sh

Lines changed: 0 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -1,63 +1,5 @@
11
#!/bin/bash
22

3-
# GRAPH_NET_ROOT=$(python3 -c "import graph_net; import os; print(os.path.dirname(os.path.dirname(graph_net.__file__)))")
4-
5-
# model_path_list=$GRAPH_NET_ROOT/graph_net/test/dev_model_list/cumsum_num_kernels_sample_list.txt
6-
# WORKSPACE_ROOT=/tmp/fusible_subgraphs
7-
# CUMSUM_NUM_KERNELS_WORKSPACE=$WORKSPACE_ROOT/workspace_cumsum_num_kernels
8-
# FUSIBLE_SUBGRAPH_RANGES_WORKSPACE=$WORKSPACE_ROOT/workspace_fusible_subgraph_ranges
9-
# FUSIBLE_SUBGRAPH_SAMPLES_WORKSPACE=$WORKSPACE_ROOT/workspace_fusible_subgraph_samples
10-
# resume=false
11-
12-
# python3 -m graph_net.model_path_handler \
13-
# --model-path-list "$model_path_list" \
14-
# --handler-config $(base64 -w 0 <<EOF
15-
# {
16-
# "handler_path": "$GRAPH_NET_ROOT/graph_net/torch/sample_passes/cumsum_num_kernels_generator.py",
17-
# "handler_class_name": "CumSumNumKernelsGenerator",
18-
# "handler_config": {
19-
# "output_json_file_name": "cumsum_num_kernels.json",
20-
# "model_path_prefix": "$GRAPH_NET_ROOT",
21-
# "output_dir": "$CUMSUM_NUM_KERNELS_WORKSPACE",
22-
# "resume": $resume
23-
# }
24-
# }
25-
# EOF
26-
# )
27-
28-
# python3 -m graph_net.model_path_handler \
29-
# --model-path-list "$model_path_list" \
30-
# --handler-config $(base64 -w 0 <<EOF
31-
# {
32-
# "handler_path": "$GRAPH_NET_ROOT/graph_net/sample_pass/fusible_subgraph_ranges_generator.py",
33-
# "handler_class_name": "FusibleSubgraphRangesGenerator",
34-
# "handler_config": {
35-
# "model_path_prefix": "$CUMSUM_NUM_KERNELS_WORKSPACE",
36-
# "input_json_file_name": "cumsum_num_kernels.json",
37-
# "output_json_file_name": "fusible_subgraph_ranges.json",
38-
# "output_dir": "$FUSIBLE_SUBGRAPH_RANGES_WORKSPACE",
39-
# "resume": $resume
40-
# }
41-
# }
42-
# EOF
43-
# )
44-
45-
# python3 -m graph_net.model_path_handler \
46-
# --model-path-list "$model_path_list" \
47-
# --handler-config $(base64 -w 0 <<EOF
48-
# {
49-
# "handler_path": "$GRAPH_NET_ROOT/graph_net/torch/sample_passes/subgraph_generator.py",
50-
# "handler_class_name": "SubgraphGenerator",
51-
# "handler_config": {
52-
# "model_path_prefix": "$GRAPH_NET_ROOT",
53-
# "output_dir": "$FUSIBLE_SUBGRAPH_SAMPLES_WORKSPACE",
54-
# "subgraph_ranges_json_root": "$FUSIBLE_SUBGRAPH_RANGES_WORKSPACE",
55-
# "resume": $resume
56-
# }
57-
# }
58-
# EOF
59-
# )
60-
613
GRAPH_NET_ROOT=$(python3 -c "import graph_net; import os; print(os.path.dirname(os.path.dirname(graph_net.__file__)))")
624

635
model_path_list=$GRAPH_NET_ROOT/graph_net/test/dev_model_list/cumsum_num_kernels_sample_list.txt

graph_net/tools/generate_subgraph_dataset.sh

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -47,25 +47,6 @@ function generate_subgraph_list() {
4747
| tee $sample_list
4848
}
4949

50-
# function generate_op_names() {
51-
# echo ">>> [1] Generate op_names.txt for samples in ${model_list}."
52-
# echo ">>>"
53-
# python3 -m graph_net.model_path_handler \
54-
# --model-path-list $model_list \
55-
# --handler-config=$(base64 -w 0 <<EOF
56-
# {
57-
# "handler_path": "$GRAPH_NET_ROOT/graph_net/torch/typical_sequence_split_points.py",
58-
# "handler_class_name": "OpNamesExtractor",
59-
# "handler_config": {
60-
# "resume": ${RESUME},
61-
# "model_path_prefix": "$GRAPH_NET_ROOT",
62-
# "output_dir": "${OP_NAMES_OUTPUT_DIR}"
63-
# }
64-
# }
65-
# EOF
66-
# )
67-
# }
68-
6950
function generate_op_names() {
7051
echo ">>> [1] Generate op_names.txt for samples in ${model_list}."
7152
echo ">>>"

0 commit comments

Comments
 (0)