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.
- Loading branch information
1 parent
d94b93b
commit d641ada
Showing
5 changed files
with
68 additions
and
37 deletions.
There are no files selected for viewing
54 changes: 23 additions & 31 deletions
54
...s/openvino/native/data/2024.1/reference_graphs/quantized/scaled_dot_product_attention.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,33 +1,25 @@ | ||
strict digraph { | ||
"0 Input_1" [id=0, type=Parameter]; | ||
"1 Input_2" [id=1, type=Parameter]; | ||
"2 Input_3" [id=2, type=Parameter]; | ||
"3 Input_4" [id=3, type=Parameter]; | ||
"4 Input_1/fq_output_0" [id=4, type=FakeQuantize]; | ||
"5 Input_2/fq_output_0" [id=5, type=FakeQuantize]; | ||
"6 ScaledDotProductAttention_5" [id=6, type=ScaledDotProductAttention]; | ||
"7 Result" [id=7, type=Result]; | ||
"8 Constant_2553" [id=8, type=Constant]; | ||
"9 Constant_2552" [id=9, type=Constant]; | ||
"10 Constant_2551" [id=10, type=Constant]; | ||
"11 Constant_2550" [id=11, type=Constant]; | ||
"12 Constant_2548" [id=12, type=Constant]; | ||
"13 Constant_2547" [id=13, type=Constant]; | ||
"14 Constant_2546" [id=14, type=Constant]; | ||
"15 Constant_2545" [id=15, type=Constant]; | ||
"0 Input_1" -> "4 Input_1/fq_output_0" [label="[1, 1, 1, 64]", style=solid]; | ||
"1 Input_2" -> "5 Input_2/fq_output_0" [label="[1, 1, 1, 64]", style=solid]; | ||
"2 Input_3" -> "6 ScaledDotProductAttention_5" [label="[1, 1, 1, 64]", style=solid]; | ||
"3 Input_4" -> "6 ScaledDotProductAttention_5" [label="[1, 1, 1, 1]", style=solid]; | ||
"4 Input_1/fq_output_0" -> "6 ScaledDotProductAttention_5" [label="[1, 1, 1, 64]", style=solid]; | ||
"5 Input_2/fq_output_0" -> "6 ScaledDotProductAttention_5" [label="[1, 1, 1, 64]", style=solid]; | ||
"6 ScaledDotProductAttention_5" -> "7 Result" [label="[1, 1, 1, 64]", style=solid]; | ||
"8 Constant_2553" -> "5 Input_2/fq_output_0" [label="[]", style=solid]; | ||
"9 Constant_2552" -> "5 Input_2/fq_output_0" [label="[]", style=solid]; | ||
"10 Constant_2551" -> "5 Input_2/fq_output_0" [label="[]", style=solid]; | ||
"11 Constant_2550" -> "5 Input_2/fq_output_0" [label="[]", style=solid]; | ||
"12 Constant_2548" -> "4 Input_1/fq_output_0" [label="[]", style=solid]; | ||
"13 Constant_2547" -> "4 Input_1/fq_output_0" [label="[]", style=solid]; | ||
"14 Constant_2546" -> "4 Input_1/fq_output_0" [label="[]", style=solid]; | ||
"15 Constant_2545" -> "4 Input_1/fq_output_0" [label="[]", style=solid]; | ||
"0 x" [id=0, type=Parameter]; | ||
"1 x/fq_output_0" [id=1, type=FakeQuantize]; | ||
"2 aten^^view/Reshape" [id=2, label="2 aten::view/Reshape", type=Reshape]; | ||
"3 aten^^view/Reshape_1" [id=3, label="3 aten::view/Reshape_1", type=Reshape]; | ||
"4 aten^^scaled_dot_product_attention/ScaledDotProductAttention" [id=4, label="4 aten::scaled_dot_product_attention/ScaledDotProductAttention", type=ScaledDotProductAttention]; | ||
"5 Result_1784" [id=5, type=Result]; | ||
"6 prim^^ListConstruct/Concat" [id=6, label="6 prim::ListConstruct/Concat", type=Constant]; | ||
"7 Constant_2000" [id=7, type=Constant]; | ||
"8 x/fq_output_0/output_high" [id=8, type=Constant]; | ||
"9 x/fq_output_0/output_low" [id=9, type=Constant]; | ||
"10 x/fq_output_0/input_high" [id=10, type=Constant]; | ||
"11 x/fq_output_0/input_low" [id=11, type=Constant]; | ||
"0 x" -> "1 x/fq_output_0" [label="[2, 1, 12]", style=solid]; | ||
"1 x/fq_output_0" -> "2 aten^^view/Reshape" [label="[2, 1, 12]", style=solid]; | ||
"2 aten^^view/Reshape" -> "3 aten^^view/Reshape_1" [label="[24]", style=solid]; | ||
"3 aten^^view/Reshape_1" -> "4 aten^^scaled_dot_product_attention/ScaledDotProductAttention" [label="parallel_input_port_ids:[1, 0], shape:[2, 1, 12]", style=solid]; | ||
"4 aten^^scaled_dot_product_attention/ScaledDotProductAttention" -> "5 Result_1784" [label="[2, 1, 12]", style=solid]; | ||
"6 prim^^ListConstruct/Concat" -> "3 aten^^view/Reshape_1" [label="[3]", style=dashed]; | ||
"7 Constant_2000" -> "2 aten^^view/Reshape" [label="[1]", style=dashed]; | ||
"8 x/fq_output_0/output_high" -> "1 x/fq_output_0" [label="[]", style=solid]; | ||
"9 x/fq_output_0/output_low" -> "1 x/fq_output_0" [label="[]", style=solid]; | ||
"10 x/fq_output_0/input_high" -> "1 x/fq_output_0" [label="[]", style=solid]; | ||
"11 x/fq_output_0/input_low" -> "1 x/fq_output_0" [label="[]", style=solid]; | ||
} |
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
13 changes: 13 additions & 0 deletions
13
tests/torch/data/reference_graphs/quantized/synthetic_model/ScaledDotProductModel.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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
strict digraph { | ||
"0 /nncf_model_input_0" [id=0, type=nncf_model_input]; | ||
"1 SymmetricQuantizer/symmetric_quantize_0" [id=1, type=symmetric_quantize]; | ||
"2 ScaledDotProductModel/view_0" [id=2, type=view]; | ||
"3 ScaledDotProductModel/view_1" [id=3, type=view]; | ||
"4 ScaledDotProductModel/scaled_dot_product_attention_0" [id=4, type=scaled_dot_product_attention]; | ||
"5 /nncf_model_output_0" [id=5, type=nncf_model_output]; | ||
"0 /nncf_model_input_0" -> "1 SymmetricQuantizer/symmetric_quantize_0"; | ||
"1 SymmetricQuantizer/symmetric_quantize_0" -> "2 ScaledDotProductModel/view_0"; | ||
"2 ScaledDotProductModel/view_0" -> "3 ScaledDotProductModel/view_1"; | ||
"3 ScaledDotProductModel/view_1" -> "4 ScaledDotProductModel/scaled_dot_product_attention_0" [label="parallel_input_port_ids:[1, 2]"]; | ||
"4 ScaledDotProductModel/scaled_dot_product_attention_0" -> "5 /nncf_model_output_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
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