Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
daniil-lyakhov committed Jul 24, 2024
1 parent 5135e34 commit cff5ac4
Show file tree
Hide file tree
Showing 22 changed files with 6,419 additions and 6,351 deletions.
2,194 changes: 1,099 additions & 1,095 deletions tests/torch/data/reference_graphs/quantized/asymmetric/inception_v3.dot

Large diffs are not rendered by default.

1,090 changes: 545 additions & 545 deletions tests/torch/data/reference_graphs/quantized/asymmetric/shufflenetv2.dot

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
strict digraph {
"0 /nncf_model_input_0" [id=0, type=nncf_model_input];
"1 AsymmetricQuantizer/asymmetric_quantize_0" [id=1, type=asymmetric_quantize];
"2 MobileNetSSD/__getitem___0" [id=2, type=__getitem__];
"3 MobileNetSSD/clone_0" [id=3, type=clone];
"4 MobileNetSSD/unsqueeze_0" [id=4, type=unsqueeze];
"5 MobileNetSSD/MultiOutputSequential[basenet]/Sequential[0]/NNCFConv2d[0]/ModuleDict[pre_ops]/UpdateWeight[0]/AsymmetricQuantizer[op]/asymmetric_quantize_0" [id=5, type=asymmetric_quantize];
"1 MobileNetSSD/__getitem___0" [id=1, type=__getitem__];
"2 MobileNetSSD/clone_0" [id=2, type=clone];
"3 MobileNetSSD/unsqueeze_0" [id=3, type=unsqueeze];
"4 MobileNetSSD/MultiOutputSequential[basenet]/Sequential[0]/NNCFConv2d[0]/ModuleDict[pre_ops]/UpdateWeight[0]/AsymmetricQuantizer[op]/asymmetric_quantize_0" [id=4, type=asymmetric_quantize];
"5 MobileNetSSD/MultiOutputSequential[basenet]/Sequential[0]/NNCFConv2d[0]/AsymmetricQuantizer/asymmetric_quantize_0" [id=5, type=asymmetric_quantize];
"6 MobileNetSSD/MultiOutputSequential[basenet]/Sequential[0]/NNCFConv2d[0]/conv2d_0" [id=6, type=conv2d];
"7 MobileNetSSD/MultiOutputSequential[basenet]/Sequential[0]/NNCFBatchNorm2d[1]/batch_norm_0" [id=7, type=batch_norm];
"8 MobileNetSSD/MultiOutputSequential[basenet]/Sequential[0]/ReLU[2]/relu__0" [id=8, type=relu_];
Expand Down Expand Up @@ -243,12 +243,12 @@ strict digraph {
"241 MobileNetSSD/SSDDetectionOutput[detection_head]/cat_1" [id=241, type=cat];
"242 MobileNetSSD/SSDDetectionOutput[detection_head]/view_12" [id=242, type=view];
"243 MobileNetSSD/SSDDetectionOutput[detection_head]/softmax_0" [id=243, type=softmax];
"0 /nncf_model_input_0" -> "1 AsymmetricQuantizer/asymmetric_quantize_0";
"1 AsymmetricQuantizer/asymmetric_quantize_0" -> "2 MobileNetSSD/__getitem___0";
"1 AsymmetricQuantizer/asymmetric_quantize_0" -> "6 MobileNetSSD/MultiOutputSequential[basenet]/Sequential[0]/NNCFConv2d[0]/conv2d_0";
"2 MobileNetSSD/__getitem___0" -> "3 MobileNetSSD/clone_0";
"3 MobileNetSSD/clone_0" -> "4 MobileNetSSD/unsqueeze_0";
"5 MobileNetSSD/MultiOutputSequential[basenet]/Sequential[0]/NNCFConv2d[0]/ModuleDict[pre_ops]/UpdateWeight[0]/AsymmetricQuantizer[op]/asymmetric_quantize_0" -> "6 MobileNetSSD/MultiOutputSequential[basenet]/Sequential[0]/NNCFConv2d[0]/conv2d_0";
"0 /nncf_model_input_0" -> "1 MobileNetSSD/__getitem___0";
"0 /nncf_model_input_0" -> "5 MobileNetSSD/MultiOutputSequential[basenet]/Sequential[0]/NNCFConv2d[0]/AsymmetricQuantizer/asymmetric_quantize_0";
"1 MobileNetSSD/__getitem___0" -> "2 MobileNetSSD/clone_0";
"2 MobileNetSSD/clone_0" -> "3 MobileNetSSD/unsqueeze_0";
"4 MobileNetSSD/MultiOutputSequential[basenet]/Sequential[0]/NNCFConv2d[0]/ModuleDict[pre_ops]/UpdateWeight[0]/AsymmetricQuantizer[op]/asymmetric_quantize_0" -> "6 MobileNetSSD/MultiOutputSequential[basenet]/Sequential[0]/NNCFConv2d[0]/conv2d_0";
"5 MobileNetSSD/MultiOutputSequential[basenet]/Sequential[0]/NNCFConv2d[0]/AsymmetricQuantizer/asymmetric_quantize_0" -> "6 MobileNetSSD/MultiOutputSequential[basenet]/Sequential[0]/NNCFConv2d[0]/conv2d_0";
"6 MobileNetSSD/MultiOutputSequential[basenet]/Sequential[0]/NNCFConv2d[0]/conv2d_0" -> "7 MobileNetSSD/MultiOutputSequential[basenet]/Sequential[0]/NNCFBatchNorm2d[1]/batch_norm_0";
"7 MobileNetSSD/MultiOutputSequential[basenet]/Sequential[0]/NNCFBatchNorm2d[1]/batch_norm_0" -> "8 MobileNetSSD/MultiOutputSequential[basenet]/Sequential[0]/ReLU[2]/relu__0";
"8 MobileNetSSD/MultiOutputSequential[basenet]/Sequential[0]/ReLU[2]/relu__0" -> "9 MobileNetSSD/MultiOutputSequential[basenet]/Sequential[0]/ReLU[2]/AsymmetricQuantizer/asymmetric_quantize_0";
Expand Down
22 changes: 11 additions & 11 deletions tests/torch/data/reference_graphs/quantized/asymmetric/ssd_vgg.dot
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
strict digraph {
"0 /nncf_model_input_0" [id=0, type=nncf_model_input];
"1 AsymmetricQuantizer/asymmetric_quantize_0" [id=1, type=asymmetric_quantize];
"2 SSD_VGG/__getitem___0" [id=2, type=__getitem__];
"3 SSD_VGG/clone_0" [id=3, type=clone];
"4 SSD_VGG/unsqueeze_0" [id=4, type=unsqueeze];
"5 SSD_VGG/MultiOutputSequential[basenet]/NNCFConv2d[0]/ModuleDict[pre_ops]/UpdateWeight[0]/AsymmetricQuantizer[op]/asymmetric_quantize_0" [id=5, type=asymmetric_quantize];
"1 SSD_VGG/__getitem___0" [id=1, type=__getitem__];
"2 SSD_VGG/clone_0" [id=2, type=clone];
"3 SSD_VGG/unsqueeze_0" [id=3, type=unsqueeze];
"4 SSD_VGG/MultiOutputSequential[basenet]/NNCFConv2d[0]/ModuleDict[pre_ops]/UpdateWeight[0]/AsymmetricQuantizer[op]/asymmetric_quantize_0" [id=4, type=asymmetric_quantize];
"5 SSD_VGG/MultiOutputSequential[basenet]/NNCFConv2d[0]/AsymmetricQuantizer/asymmetric_quantize_0" [id=5, type=asymmetric_quantize];
"6 SSD_VGG/MultiOutputSequential[basenet]/NNCFConv2d[0]/conv2d_0" [id=6, type=conv2d];
"7 SSD_VGG/MultiOutputSequential[basenet]/NNCFBatchNorm2d[1]/batch_norm_0" [id=7, type=batch_norm];
"8 SSD_VGG/MultiOutputSequential[basenet]/ReLU[2]/relu__0" [id=8, type=relu_];
Expand Down Expand Up @@ -195,12 +195,12 @@ strict digraph {
"193 SSD_VGG/SSDDetectionOutput[detection_head]/cat_1" [id=193, type=cat];
"194 SSD_VGG/SSDDetectionOutput[detection_head]/view_12" [id=194, type=view];
"195 SSD_VGG/SSDDetectionOutput[detection_head]/softmax_0" [id=195, type=softmax];
"0 /nncf_model_input_0" -> "1 AsymmetricQuantizer/asymmetric_quantize_0";
"1 AsymmetricQuantizer/asymmetric_quantize_0" -> "2 SSD_VGG/__getitem___0";
"1 AsymmetricQuantizer/asymmetric_quantize_0" -> "6 SSD_VGG/MultiOutputSequential[basenet]/NNCFConv2d[0]/conv2d_0";
"2 SSD_VGG/__getitem___0" -> "3 SSD_VGG/clone_0";
"3 SSD_VGG/clone_0" -> "4 SSD_VGG/unsqueeze_0";
"5 SSD_VGG/MultiOutputSequential[basenet]/NNCFConv2d[0]/ModuleDict[pre_ops]/UpdateWeight[0]/AsymmetricQuantizer[op]/asymmetric_quantize_0" -> "6 SSD_VGG/MultiOutputSequential[basenet]/NNCFConv2d[0]/conv2d_0";
"0 /nncf_model_input_0" -> "1 SSD_VGG/__getitem___0";
"0 /nncf_model_input_0" -> "5 SSD_VGG/MultiOutputSequential[basenet]/NNCFConv2d[0]/AsymmetricQuantizer/asymmetric_quantize_0";
"1 SSD_VGG/__getitem___0" -> "2 SSD_VGG/clone_0";
"2 SSD_VGG/clone_0" -> "3 SSD_VGG/unsqueeze_0";
"4 SSD_VGG/MultiOutputSequential[basenet]/NNCFConv2d[0]/ModuleDict[pre_ops]/UpdateWeight[0]/AsymmetricQuantizer[op]/asymmetric_quantize_0" -> "6 SSD_VGG/MultiOutputSequential[basenet]/NNCFConv2d[0]/conv2d_0";
"5 SSD_VGG/MultiOutputSequential[basenet]/NNCFConv2d[0]/AsymmetricQuantizer/asymmetric_quantize_0" -> "6 SSD_VGG/MultiOutputSequential[basenet]/NNCFConv2d[0]/conv2d_0";
"6 SSD_VGG/MultiOutputSequential[basenet]/NNCFConv2d[0]/conv2d_0" -> "7 SSD_VGG/MultiOutputSequential[basenet]/NNCFBatchNorm2d[1]/batch_norm_0";
"7 SSD_VGG/MultiOutputSequential[basenet]/NNCFBatchNorm2d[1]/batch_norm_0" -> "8 SSD_VGG/MultiOutputSequential[basenet]/ReLU[2]/relu__0";
"8 SSD_VGG/MultiOutputSequential[basenet]/ReLU[2]/relu__0" -> "9 SSD_VGG/MultiOutputSequential[basenet]/ReLU[2]/AsymmetricQuantizer/asymmetric_quantize_0";
Expand Down
Loading

0 comments on commit cff5ac4

Please sign in to comment.