forked from openvinotoolkit/nncf
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update pattern fusing algo for quantization (openvinotoolkit#733)
* Debug * Test version * Test version * Update search_all func * Update according rebase changes * Update reference graphs. Now FQ are put after fused BN + RELU pattern * Improve code style * Fix pylint * Fix pylint x2 * Update according Andrey's comments * Remove unnecessary lines
- Loading branch information
Showing
17 changed files
with
1,072 additions
and
1,031 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 5 additions & 11 deletions
16
tests/torch/data/reference_graphs/pattern_merging/broken_output_edges_pattern.dot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,32 @@ | ||
strict digraph { | ||
"0 /A_0" [associated_ip_node_keys="{'POST HOOK 0 /A_0'}", node_type="InsertionPointGraphNodeType.OPERATOR", regular_node_data="0 /A_0"]; | ||
"1 /conv2d_0" [associated_ip_node_keys="{'PRE HOOK 0 1 /conv2d_0', 'POST HOOK 1 /conv2d_0'}", node_type="InsertionPointGraphNodeType.OPERATOR", regular_node_data="1 /conv2d_0"]; | ||
"2 /batch_norm_0" [associated_ip_node_keys="{'PRE HOOK 0 2 /batch_norm_0', 'POST HOOK 2 /batch_norm_0'}", node_type="InsertionPointGraphNodeType.OPERATOR", regular_node_data="2 /batch_norm_0"]; | ||
"3 /RELU_0" [associated_ip_node_keys="{'POST HOOK 3 /RELU_0', 'PRE HOOK 0 3 /RELU_0'}", node_type="InsertionPointGraphNodeType.OPERATOR", regular_node_data="3 /RELU_0"]; | ||
"4 /C_0" [associated_ip_node_keys="{'PRE HOOK 1 4 /C_0', 'PRE HOOK 0 4 /C_0', 'POST HOOK 4 /C_0'}", node_type="InsertionPointGraphNodeType.OPERATOR", regular_node_data="4 /C_0"]; | ||
"1 /conv2d_0" [associated_ip_node_keys="{'POST HOOK 1 /conv2d_0', 'PRE HOOK 0 1 /conv2d_0'}", node_type="InsertionPointGraphNodeType.OPERATOR", regular_node_data="1 /conv2d_0"]; | ||
"4 /C_0" [associated_ip_node_keys="{'PRE HOOK 1 4 /C_0', 'POST HOOK 4 /C_0', 'PRE HOOK 0 4 /C_0'}", node_type="InsertionPointGraphNodeType.OPERATOR", regular_node_data="4 /C_0"]; | ||
"5 /B_0" [associated_ip_node_keys="{'PRE HOOK 0 5 /B_0', 'POST HOOK 5 /B_0'}", node_type="InsertionPointGraphNodeType.OPERATOR", regular_node_data="5 /B_0"]; | ||
"POST HOOK 0 /A_0" [insertion_point_data="TargetType.OPERATOR_POST_HOOK /A_0", node_type="InsertionPointGraphNodeType.INSERTION_POINT"]; | ||
"PRE HOOK 0 1 /conv2d_0" [insertion_point_data="TargetType.OPERATOR_PRE_HOOK 0 /conv2d_0", node_type="InsertionPointGraphNodeType.INSERTION_POINT"]; | ||
"POST HOOK 1 /conv2d_0" [insertion_point_data="TargetType.OPERATOR_POST_HOOK /conv2d_0", node_type="InsertionPointGraphNodeType.INSERTION_POINT"]; | ||
"PRE HOOK 0 2 /batch_norm_0" [insertion_point_data="TargetType.OPERATOR_PRE_HOOK 0 /batch_norm_0", node_type="InsertionPointGraphNodeType.INSERTION_POINT"]; | ||
"POST HOOK 2 /batch_norm_0" [insertion_point_data="TargetType.OPERATOR_POST_HOOK /batch_norm_0", node_type="InsertionPointGraphNodeType.INSERTION_POINT"]; | ||
"PRE HOOK 0 3 /RELU_0" [insertion_point_data="TargetType.OPERATOR_PRE_HOOK 0 /RELU_0", node_type="InsertionPointGraphNodeType.INSERTION_POINT"]; | ||
"POST HOOK 3 /RELU_0" [insertion_point_data="TargetType.OPERATOR_POST_HOOK /RELU_0", node_type="InsertionPointGraphNodeType.INSERTION_POINT"]; | ||
"PRE HOOK 0 4 /C_0" [insertion_point_data="TargetType.OPERATOR_PRE_HOOK 0 /C_0", node_type="InsertionPointGraphNodeType.INSERTION_POINT"]; | ||
"PRE HOOK 1 4 /C_0" [insertion_point_data="TargetType.OPERATOR_PRE_HOOK 1 /C_0", node_type="InsertionPointGraphNodeType.INSERTION_POINT"]; | ||
"POST HOOK 4 /C_0" [insertion_point_data="TargetType.OPERATOR_POST_HOOK /C_0", node_type="InsertionPointGraphNodeType.INSERTION_POINT"]; | ||
"PRE HOOK 0 5 /B_0" [insertion_point_data="TargetType.OPERATOR_PRE_HOOK 0 /B_0", node_type="InsertionPointGraphNodeType.INSERTION_POINT"]; | ||
"POST HOOK 5 /B_0" [insertion_point_data="TargetType.OPERATOR_POST_HOOK /B_0", node_type="InsertionPointGraphNodeType.INSERTION_POINT"]; | ||
"2 /batch_norm_0\n3 /RELU_0\n" [associated_ip_node_keys="{'POST HOOK 3 /RELU_0', 'PRE HOOK 0 2 /batch_norm_0'}", node_type="InsertionPointGraphNodeType.OPERATOR", regular_node_data="2 /batch_norm_0"]; | ||
"0 /A_0" -> "POST HOOK 0 /A_0"; | ||
"1 /conv2d_0" -> "POST HOOK 1 /conv2d_0"; | ||
"2 /batch_norm_0" -> "POST HOOK 2 /batch_norm_0"; | ||
"3 /RELU_0" -> "POST HOOK 3 /RELU_0"; | ||
"4 /C_0" -> "POST HOOK 4 /C_0"; | ||
"5 /B_0" -> "POST HOOK 5 /B_0"; | ||
"POST HOOK 0 /A_0" -> "PRE HOOK 0 1 /conv2d_0"; | ||
"PRE HOOK 0 1 /conv2d_0" -> "1 /conv2d_0"; | ||
"POST HOOK 1 /conv2d_0" -> "PRE HOOK 0 2 /batch_norm_0"; | ||
"POST HOOK 1 /conv2d_0" -> "PRE HOOK 0 4 /C_0"; | ||
"PRE HOOK 0 2 /batch_norm_0" -> "2 /batch_norm_0"; | ||
"POST HOOK 2 /batch_norm_0" -> "PRE HOOK 0 3 /RELU_0"; | ||
"PRE HOOK 0 3 /RELU_0" -> "3 /RELU_0"; | ||
"PRE HOOK 0 2 /batch_norm_0" -> "2 /batch_norm_0\n3 /RELU_0\n"; | ||
"POST HOOK 3 /RELU_0" -> "PRE HOOK 1 4 /C_0"; | ||
"PRE HOOK 0 4 /C_0" -> "4 /C_0"; | ||
"PRE HOOK 1 4 /C_0" -> "4 /C_0"; | ||
"POST HOOK 4 /C_0" -> "PRE HOOK 0 5 /B_0"; | ||
"PRE HOOK 0 5 /B_0" -> "5 /B_0"; | ||
"2 /batch_norm_0\n3 /RELU_0\n" -> "POST HOOK 3 /RELU_0"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.