File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -880,9 +880,10 @@ def _sanity_check_graph_for_non_decomp_ops(
880
880
generate_error = False ,
881
881
partitioner_name = None ,
882
882
):
883
- warning_str = f"Found { ops_set_to_not_decompose } in edge dialect program { name } . "
883
+ warning_str_end = " "
884
884
if partitioner_name is not None :
885
- warning_str += f" This op was registered by the partitioner { partitioner_name } to not be decomposed."
885
+ warning_str_end += f"This op was registered by the partitioner { partitioner_name } to not be decomposed.\n "
886
+ warning_str_end += f"The following ops: { ops_set_to_not_decompose } were specified to not be decomposed in { name } ."
886
887
887
888
# Check that the ops that were registered to not be decomposed are not present in the
888
889
# graph anymore as the transform passes and backends should have consumed them by now.
@@ -894,6 +895,10 @@ def _sanity_check_graph_for_non_decomp_ops(
894
895
if (
895
896
node .op == "call_function" and node .target in ops_set_to_not_decompose
896
897
) and is_op_supported :
898
+ warning_str = (
899
+ f"Node { node } with op { node .target } was not decomposed or delegated.\n "
900
+ + warning_str_end
901
+ )
897
902
if generate_error :
898
903
raise RuntimeError (warning_str )
899
904
else :
@@ -904,6 +909,10 @@ def _sanity_check_graph_for_non_decomp_ops(
904
909
if (
905
910
node .op == "call_function" and node .target in ops_set_to_not_decompose
906
911
) and is_op_supported :
912
+ warning_str = (
913
+ f"Node { node } with op { node .target } was not decomposed or delegated.\n "
914
+ + warning_str_end
915
+ )
907
916
if generate_error :
908
917
raise RuntimeError (warning_str )
909
918
else :
You can’t perform that action at this time.
0 commit comments