Skip to content

Commit decec47

Browse files
committed
remove unnecessary codes
1 parent 037400e commit decec47

File tree

2 files changed

+2
-14
lines changed

2 files changed

+2
-14
lines changed

graph_net/tools/check_graph_module_parsable.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ config_json_str=$(cat <<EOF
1212
"handler_class_name": "CheckGraphModuleParsable",
1313
"handler_config": {
1414
"resume": false,
15-
"model_path_prefix": "/tmp/find_fully_fusible_output_test3/",
15+
"model_path_prefix": "$GRAPH_NET_ROOT/../",
1616
"limits_handled_models": 999999,
1717
"output_dir": "/tmp/check_graph_module_parsable"
1818
}
@@ -21,5 +21,4 @@ EOF
2121
)
2222
CONFIG=$(echo $config_json_str | base64 -w 0)
2323

24-
python3 -m graph_net.model_path_handler --model-path-list /tmp/sample_list.txt --handler-config=$CONFIG --use-subprocess
25-
# python3 -m graph_net.model_path_handler --model-path-list $GRAPH_NET_ROOT/test/dev_model_list/graph_module_parse_error_torch_sample_list.txt --handler-config=$CONFIG --use-subprocess
24+
python3 -m graph_net.model_path_handler --model-path-list $GRAPH_NET_ROOT/test/dev_model_list/graph_module_parse_error_torch_sample_list.txt --handler-config=$CONFIG --use-subprocess

graph_net/torch/graph_decomposer.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -142,17 +142,6 @@ def __call__(self, rel_model_path):
142142
**config,
143143
)
144144
rewrited_gm(*inputs)
145-
except Exception as e:
146-
if "CppCompileError" in type(e).__name__:
147-
error_type = "Inductor Compile Error"
148-
elif isinstance(e, AssertionError):
149-
error_type = "FX Tracing/Assertion Error"
150-
else:
151-
error_type = "Unknown Execution Error"
152-
153-
logger.error(f"[{model_path}] FAILED during graph conversion/execution.")
154-
logger.error(f"[{model_path}] Error Type: {error_type}. Message: {e}")
155-
logger.exception(f"[{model_path}] Full traceback details:")
156145
finally:
157146
pass
158147
# logger.warning("convert_to_submodules_graph-call-end")

0 commit comments

Comments
 (0)