diff --git a/docs/Changelog.md b/docs/Changelog.md index 0d4595ae3981ab8820cc484300d67aa306b18a85..bbd1c5b855a2176601b1c9342f9cab297ec9a9fd 100644 --- a/docs/Changelog.md +++ b/docs/Changelog.md @@ -10544,16 +10544,16 @@ This version of the operator has been available since version 11 of the default #### Inputs
-
input : T
+
input (differentiable) : T
Tensor of rank r >= 1.
-
condition : T1
+
condition (non-differentiable) : T1
Rank 1 tensor of booleans to indicate which slices or data elements to be selected. Its length can be less than the input length along the axis or the flattened input size if axis is not specified. In such cases data slices or elements exceeding the condition length are discarded.
#### Outputs
-
output : T
+
output (differentiable) : T
Tensor of rank r if axis is specified. Otherwise output is a Tensor of rank 1.
@@ -12744,14 +12744,14 @@ This version of the operator has been available since version 11 of the default #### Inputs
-
X (differentiable) : T
+
X (non-differentiable) : T
Input tensor
#### Outputs
-
Y (differentiable) : T
+
Y (non-differentiable) : T
Output tensor
@@ -17604,20 +17604,20 @@ x_original = length_resized > 1 ? start_x * (length_original - 1) + x_resized * #### Inputs (3 - 4)
-
X : T1
+
X (differentiable) : T1
N-D tensor
-
roi : T2
+
roi (non-differentiable) : T2
1-D tensor given as [start1, ..., startN, end1, ..., endN], where N is the rank of X. The RoIs' coordinates are normalized in the coordinate system of the input image. It only takes effect when coordinate_transformation_mode is "tf_crop_and_resize"
-
scales : tensor(float)
+
scales (non-differentiable) : tensor(float)
The scale array along each dimension. It takes value greater than 0. If it's less than 1, it's sampling down, otherwise, it's upsampling. The number of elements of 'scales' should be the same as the rank of input 'X'. Only one of 'scales' and 'sizes' can be specified. If 'size' is specified, then set scales to empty data (zero shape) in this operator's input list.
-
sizes (optional) : tensor(int64)
+
sizes (optional, non-differentiable) : tensor(int64)
The size of the output tensor. The number of elements of 'sizes' should be the same as the rank of input 'X'. Only one of 'scales' and 'sizes' can be specified.
#### Outputs
-
Y : T1
+
Y (differentiable) : T1
N-D tensor after resizing
@@ -17884,14 +17884,14 @@ This version of the operator has been available since version 13 of the default #### Inputs
-
input (differentiable) : T
+
input (non-differentiable) : T
Input tensor
#### Outputs
-
output (differentiable) : T
+
output (non-differentiable) : T
The sign of the input tensor computed element-wise. It has the same shape and type of the input.
@@ -18253,7 +18253,7 @@ This version of the operator has been available since version 13 of the default #### Inputs (1 - 2)
-
data : T
+
data (differentiable) : T
Tensors with at least max(dims) dimensions.
axes (optional, non-differentiable) : tensor(int64)
List of integers indicating the dimensions to squeeze. Negative value means counting dimensions from the back. Accepted range is [-r, r-1] where r = rank(data).
@@ -18262,7 +18262,7 @@ This version of the operator has been available since version 13 of the default #### Outputs
-
squeezed : T
+
squeezed (differentiable) : T
Reshaped tensor with same data as input.
diff --git a/docs/Operators.md b/docs/Operators.md index 3e6f760851985e5821f72257c3c9c91bc09a60b5..fb99f46868a7823d8bc99e9c80f4039ef5d67108 100644 --- a/docs/Operators.md +++ b/docs/Operators.md @@ -2652,16 +2652,16 @@ Other versions of this operator: 9 #### Inputs
-
input : T
+
input (differentiable) : T
Tensor of rank r >= 1.
-
condition : T1
+
condition (non-differentiable) : T1
Rank 1 tensor of booleans to indicate which slices or data elements to be selected. Its length can be less than the input length along the axis or the flattened input size if axis is not specified. In such cases data slices or elements exceeding the condition length are discarded.
#### Outputs
-
output : T
+
output (differentiable) : T
Tensor of rank r if axis is specified. Otherwise output is a Tensor of rank 1.
@@ -15672,20 +15672,20 @@ x_original = length_resized > 1 ? start_x * (length_original - 1) + x_resized * #### Inputs (3 - 4)
-
X : T1
+
X (differentiable) : T1
N-D tensor
-
roi : T2
+
roi (non-differentiable) : T2
1-D tensor given as [start1, ..., startN, end1, ..., endN], where N is the rank of X. The RoIs' coordinates are normalized in the coordinate system of the input image. It only takes effect when coordinate_transformation_mode is "tf_crop_and_resize"
-
scales : tensor(float)
+
scales (non-differentiable) : tensor(float)
The scale array along each dimension. It takes value greater than 0. If it's less than 1, it's sampling down, otherwise, it's upsampling. The number of elements of 'scales' should be the same as the rank of input 'X'. Only one of 'scales' and 'sizes' can be specified. If 'size' is specified, then set scales to empty data (zero shape) in this operator's input list.
-
sizes (optional) : tensor(int64)
+
sizes (optional, non-differentiable) : tensor(int64)
The size of the output tensor. The number of elements of 'sizes' should be the same as the rank of input 'X'. Only one of 'scales' and 'sizes' can be specified.
#### Outputs
-
Y : T1
+
Y (differentiable) : T1
N-D tensor after resizing
@@ -17020,14 +17020,14 @@ This version of the operator has been available since version 11 of the default #### Inputs
-
X (differentiable) : T
+
X (non-differentiable) : T
Input tensor
#### Outputs
-
Y (differentiable) : T
+
Y (non-differentiable) : T
Output tensor
@@ -18330,14 +18330,14 @@ Other versions of this operator: 9 #### Inputs
-
input (differentiable) : T
+
input (non-differentiable) : T
Input tensor
#### Outputs
-
output (differentiable) : T
+
output (non-differentiable) : T
The sign of the input tensor computed element-wise. It has the same shape and type of the input.
@@ -20506,7 +20506,7 @@ Other versions of this operator: 1, -
data : T
+
data (differentiable) : T
Tensors with at least max(dims) dimensions.
axes (optional, non-differentiable) : tensor(int64)
List of integers indicating the dimensions to squeeze. Negative value means counting dimensions from the back. Accepted range is [-r, r-1] where r = rank(data).
@@ -20515,7 +20515,7 @@ Other versions of this operator:
1, -
squeezed : T
+
squeezed (differentiable) : T
Reshaped tensor with same data as input.
diff --git a/onnx/defs/math/defs.cc b/onnx/defs/math/defs.cc index 2da0b5c0a003f006f1c1d301cbf8156006c02d65..4664f268bb7d368ec6209040768d9d08d360c2ec 100644 --- a/onnx/defs/math/defs.cc +++ b/onnx/defs/math/defs.cc @@ -2232,7 +2232,7 @@ ONNX_OPERATOR_SET_SCHEMA( OpSchema::Single, true, 1, - OpSchema::Differentiable) + OpSchema::NonDifferentiable) .Output( 0, "output", @@ -2242,7 +2242,7 @@ ONNX_OPERATOR_SET_SCHEMA( OpSchema::Single, true, 1, - OpSchema::Differentiable) + OpSchema::NonDifferentiable) .TypeConstraint( "T", OpSchema::all_numeric_types_with_bfloat(), @@ -2624,7 +2624,7 @@ ONNX_OPERATOR_SET_SCHEMA( OpSchema::Single, true, 1, - OpSchema::Differentiable) + OpSchema::NonDifferentiable) .Output( 0, "Y", @@ -2633,7 +2633,7 @@ ONNX_OPERATOR_SET_SCHEMA( OpSchema::Single, true, 1, - OpSchema::Differentiable) + OpSchema::NonDifferentiable) .TypeConstraint( "T", {"tensor(float16)", "tensor(float)", "tensor(double)"}, diff --git a/onnx/defs/tensor/defs.cc b/onnx/defs/tensor/defs.cc index 774e5f3b38d5a2c59bce14ceffe75ef24b870c31..12ec75bb04ce216e0a086c8fcb1d034bf03b216e 100644 --- a/onnx/defs/tensor/defs.cc +++ b/onnx/defs/tensor/defs.cc @@ -1564,7 +1564,10 @@ ONNX_OPERATOR_SET_SCHEMA( "data", "Tensors with at least max(dims) dimensions.", "T", - OpSchema::Single) + OpSchema::Single, + true, + 1, + OpSchema::Differentiable) .Input( 1, "axes", @@ -1580,7 +1583,10 @@ ONNX_OPERATOR_SET_SCHEMA( "squeezed", "Reshaped tensor with same data as input.", "T", - OpSchema::Single) + OpSchema::Single, + true, + 1, + OpSchema::Differentiable) .TypeConstraint( "T", OpSchema::all_tensor_types_with_bfloat(), @@ -2127,13 +2133,19 @@ ONNX_OPERATOR_SET_SCHEMA( "X", "N-D tensor", "T1", - OpSchema::Single) + OpSchema::Single, + true, + 1, + OpSchema::Differentiable) .Input( 1, "roi", "1-D tensor given as [start1, ..., startN, end1, ..., endN], where N is the rank of X. The RoIs' coordinates are normalized in the coordinate system of the input image. It only takes effect when coordinate_transformation_mode is \"tf_crop_and_resize\"", "T2", - OpSchema::Single) + OpSchema::Single, + true, + 1, + OpSchema::NonDifferentiable) .Input( 2, "scales", @@ -2141,19 +2153,29 @@ ONNX_OPERATOR_SET_SCHEMA( " it's sampling down, otherwise, it's upsampling. The number of elements of 'scales' should" " be the same as the rank of input 'X'. Only one of 'scales' and 'sizes' can be specified. If 'size' is specified, then set scales to empty data (zero shape) in this operator's input list.", "tensor(float)", - OpSchema::Single) + OpSchema::Single, + true, + 1, + OpSchema::NonDifferentiable) .Input( 3, "sizes", "The size of the output tensor. The number of elements of 'sizes' should be the same as the" " rank of input 'X'. Only one of 'scales' and 'sizes' can be specified.", "tensor(int64)", - OpSchema::Optional) + OpSchema::Optional, + true, + 1, + OpSchema::NonDifferentiable) .Output( 0, "Y", "N-D tensor after resizing", - "T1") + "T1", + OpSchema::Single, + true, + 1, + OpSchema::Differentiable) .TypeConstraint( "T1", OpSchema::all_tensor_types_with_bfloat(), @@ -2219,7 +2241,10 @@ ONNX_OPERATOR_SET_SCHEMA( "input", "Tensor of rank r >= 1.", "T", - OpSchema::Single) + OpSchema::Single, + true, + 1, + OpSchema::Differentiable) .Input( 1, "condition", @@ -2228,13 +2253,19 @@ ONNX_OPERATOR_SET_SCHEMA( "or the flattened input size if axis is not specified. " "In such cases data slices or elements exceeding the condition length are discarded.", "T1", - OpSchema::Single) + OpSchema::Single, + true, + 1, + OpSchema::NonDifferentiable) .Output( 0, "output", "Tensor of rank r if axis is specified. Otherwise output is a Tensor of rank 1.", "T", - OpSchema::Single) + OpSchema::Single, + true, + 1, + OpSchema::Differentiable) .TypeConstraint( "T", OpSchema::all_tensor_types(),