-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add attribute output_dtype to QuantizeLinear (#5956)
The purpose of this change is to allow setting the quantized type without providing the zero-point tensor for symmetric quantization. This reduces model size, most importantly for block quantization where the zero-point tensor dimensions are large, and reduces backend runtime. This implements issue #5943 --------- Signed-off-by: Gal Hubara Agam <ghubaraagam@nvidia.com>
- Loading branch information
Showing
31 changed files
with
500 additions
and
79 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
Binary file renamed
BIN
+234 Bytes
...de/test_quantizelinear_blocked/model.onnx → ...ntizelinear_blocked_asymmetric/model.onnx
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file added
BIN
+219 Bytes
onnx/backend/test/data/node/test_quantizelinear_blocked_symmetric/model.onnx
Binary file not shown.
Binary file added
BIN
+59 Bytes
onnx/backend/test/data/node/test_quantizelinear_blocked_symmetric/test_data_set_0/input_0.pb
Binary file not shown.
Binary file added
BIN
+41 Bytes
onnx/backend/test/data/node/test_quantizelinear_blocked_symmetric/test_data_set_0/input_1.pb
Binary file not shown.
Binary file added
BIN
+41 Bytes
.../backend/test/data/node/test_quantizelinear_blocked_symmetric/test_data_set_0/output_0.pb
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...est/data/node/test_reduce_log_sum_exp_do_not_keepdims_example/test_data_set_0/output_0.pb
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...node/test_reduce_log_sum_exp_do_not_keepdims_example_expanded/test_data_set_0/output_0.pb
Binary file not shown.
2 changes: 1 addition & 1 deletion
2
...test/data/node/test_reduce_log_sum_exp_do_not_keepdims_random/test_data_set_0/output_0.pb
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,2 +1,2 @@ | ||
BreducedJ0�eMIz�@�&~X@{��U��忎c;��^@n6���"@�� | ||
BreducedJ0�eMIz�@�&~X@}��U��忎c;��^@n6���"@�� | ||
�1�? |
2 changes: 1 addition & 1 deletion
2
.../node/test_reduce_log_sum_exp_do_not_keepdims_random_expanded/test_data_set_0/output_0.pb
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,2 +1,2 @@ | ||
BreducedJ0�eMIz�@�&~X@{��U��忎c;��^@n6���"@�� | ||
BreducedJ0�eMIz�@�&~X@}��U��忎c;��^@n6���"@�� | ||
�1�? |
Binary file modified
BIN
+0 Bytes
(100%)
...ckend/test/data/node/test_reduce_log_sum_exp_keepdims_example/test_data_set_0/output_0.pb
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...t/data/node/test_reduce_log_sum_exp_keepdims_example_expanded/test_data_set_0/output_0.pb
Binary file not shown.
2 changes: 1 addition & 1 deletion
2
...ackend/test/data/node/test_reduce_log_sum_exp_keepdims_random/test_data_set_0/output_0.pb
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,2 +1,2 @@ | ||
BreducedJ0�eMIz�@�&~X@{��U��忎c;��^@n6���"@�� | ||
BreducedJ0�eMIz�@�&~X@}��U��忎c;��^@n6���"@�� | ||
�1�? |
2 changes: 1 addition & 1 deletion
2
...st/data/node/test_reduce_log_sum_exp_keepdims_random_expanded/test_data_set_0/output_0.pb
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,2 +1,2 @@ | ||
BreducedJ0�eMIz�@�&~X@{��U��忎c;��^@n6���"@�� | ||
BreducedJ0�eMIz�@�&~X@}��U��忎c;��^@n6���"@�� | ||
�1�? |
Binary file modified
BIN
+0 Bytes
(100%)
...a/node/test_reduce_log_sum_exp_negative_axes_keepdims_example/test_data_set_0/output_0.pb
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...st_reduce_log_sum_exp_negative_axes_keepdims_example_expanded/test_data_set_0/output_0.pb
Binary file not shown.
2 changes: 1 addition & 1 deletion
2
...ta/node/test_reduce_log_sum_exp_negative_axes_keepdims_random/test_data_set_0/output_0.pb
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,2 +1,2 @@ | ||
BreducedJ0�eMIz�@�&~X@{��U��忎c;��^@n6���"@�� | ||
BreducedJ0�eMIz�@�&~X@}��U��忎c;��^@n6���"@�� | ||
�1�? |
2 changes: 1 addition & 1 deletion
2
...est_reduce_log_sum_exp_negative_axes_keepdims_random_expanded/test_data_set_0/output_0.pb
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,2 +1,2 @@ | ||
BreducedJ0�eMIz�@�&~X@{��U��忎c;��^@n6���"@�� | ||
BreducedJ0�eMIz�@�&~X@}��U��忎c;��^@n6���"@�� | ||
�1�? |
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
Oops, something went wrong.