From e9871305d4421ac9836e5fd2be2dc89bc0bb9dcf Mon Sep 17 00:00:00 2001 From: Yuan Yao Date: Thu, 22 Jun 2023 17:32:36 +0000 Subject: [PATCH] fix typo in DQ spec Signed-off-by: Yuan Yao --- docs/Changelog.md | 2 +- docs/Operators.md | 2 +- onnx/defs/quantization/defs.cc | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/Changelog.md b/docs/Changelog.md index 4395e991a32..672101bd3da 100644 --- a/docs/Changelog.md +++ b/docs/Changelog.md @@ -22943,7 +22943,7 @@ This version of the operator has been available since version 19 of the default
T1 : tensor(int8), tensor(uint8), tensor(int32), tensor(float8e4m3fn), tensor(float8e4m3fnuz), tensor(float8e5m2), tensor(float8e5m2fnuz)
Constrain 'x_zero_point' and 'x' to 8-bit integer or float, or /32-bit integer tensor.
T2 : tensor(float), tensor(float16), tensor(bfloat16)
-
'y_scale' determines the output type.
+
'x_scale' determines the output type.
### **Equal-19** diff --git a/docs/Operators.md b/docs/Operators.md index 65eb6e893aa..3e5221316d0 100644 --- a/docs/Operators.md +++ b/docs/Operators.md @@ -6959,7 +6959,7 @@ Other versions of this operator: 10T1 : tensor(int8), tensor(uint8), tensor(int32), tensor(float8e4m3fn), tensor(float8e4m3fnuz), tensor(float8e5m2), tensor(float8e5m2fnuz)
Constrain 'x_zero_point' and 'x' to 8-bit integer or float, or /32-bit integer tensor.
T2 : tensor(float), tensor(float16), tensor(bfloat16)
-
'y_scale' determines the output type.
+
'x_scale' determines the output type.
diff --git a/onnx/defs/quantization/defs.cc b/onnx/defs/quantization/defs.cc index 9a0100d2ccc..94278a29fec 100644 --- a/onnx/defs/quantization/defs.cc +++ b/onnx/defs/quantization/defs.cc @@ -126,7 +126,7 @@ ONNX_OPERATOR_SET_SCHEMA( .TypeConstraint( "T2", {"tensor(float)", "tensor(float16)", "tensor(bfloat16)"}, - "'y_scale' determines the output type.") + "'x_scale' determines the output type.") .SetDoc(DequantizeLinear_ver19_doc) .TypeAndShapeInferenceFunction([](ONNX_NAMESPACE::InferenceContext& ctx) { auto y_type = ctx.getOutputType(0);