-
Notifications
You must be signed in to change notification settings - Fork 240
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PT] Support scaled_dot_product_attention (#2761)
### Changes Add PTScaledDotProductAttentionMetatype ### Related tickets 130925
- Loading branch information
1 parent
2871993
commit 4924b7e
Showing
5 changed files
with
53 additions
and
8 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
15 changes: 15 additions & 0 deletions
15
...orch/data/reference_graphs/quantized/ptq/symmetric/scaled_dot_product_attention_model.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,15 @@ | ||
strict digraph { | ||
"0 /nncf_model_input_0" [id=0, type=nncf_model_input]; | ||
"1 SymmetricQuantizer/symmetric_quantize_0" [id=1, type=symmetric_quantize]; | ||
"2 /nncf_model_input_1" [id=2, type=nncf_model_input]; | ||
"3 SymmetricQuantizer/symmetric_quantize_1" [id=3, type=symmetric_quantize]; | ||
"4 /nncf_model_input_2" [id=4, type=nncf_model_input]; | ||
"5 ScaledDotProductAttentionModel/scaled_dot_product_attention_0" [id=5, type=scaled_dot_product_attention]; | ||
"6 /nncf_model_output_0" [id=6, type=nncf_model_output]; | ||
"0 /nncf_model_input_0" -> "1 SymmetricQuantizer/symmetric_quantize_0"; | ||
"1 SymmetricQuantizer/symmetric_quantize_0" -> "5 ScaledDotProductAttentionModel/scaled_dot_product_attention_0"; | ||
"2 /nncf_model_input_1" -> "3 SymmetricQuantizer/symmetric_quantize_1"; | ||
"3 SymmetricQuantizer/symmetric_quantize_1" -> "5 ScaledDotProductAttentionModel/scaled_dot_product_attention_0"; | ||
"4 /nncf_model_input_2" -> "5 ScaledDotProductAttentionModel/scaled_dot_product_attention_0"; | ||
"5 ScaledDotProductAttentionModel/scaled_dot_product_attention_0" -> "6 /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