Skip to content

Commit fb1f721

Browse files
Increase SequenceMap version to 17 (onnx#4133)
* Increase SequenceMap version to 17 Signed-off-by: Joaquin Anton <janton@nvidia.com> * Update comment about fwd declarations for opset 17 Signed-off-by: Joaquin Anton <janton@nvidia.com> Co-authored-by: Chun-Wei Chen <jacky82226@gmail.com>
1 parent f1d86bb commit fb1f721

File tree

17 files changed

+72
-60
lines changed

17 files changed

+72
-60
lines changed

docs/Changelog.md

Lines changed: 46 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -20771,7 +20771,51 @@ This version of the operator has been available since version 16 of the default
2077120771
<dd>Constrain input and output types to any tensor type.</dd>
2077220772
</dl>
2077320773

20774-
### <a name="SequenceMap-16"></a>**SequenceMap-16**</a>
20774+
### <a name="Where-16"></a>**Where-16**</a>
20775+
20776+
Return elements, either from X or Y, depending on condition.
20777+
Where behaves like
20778+
[numpy.where](https://docs.scipy.org/doc/numpy/reference/generated/numpy.where.html)
20779+
with three parameters.
20780+
20781+
This operator supports **multidirectional (i.e., Numpy-style) broadcasting**; for more details please check [the doc](Broadcasting.md).
20782+
20783+
**History**
20784+
- Version 16 adds bfloat16 to the types allowed (for the second and third parameter).
20785+
20786+
#### Version
20787+
20788+
This version of the operator has been available since version 16 of the default ONNX operator set.
20789+
20790+
#### Inputs
20791+
20792+
<dl>
20793+
<dt><tt>condition</tt> (non-differentiable) : B</dt>
20794+
<dd>When True (nonzero), yield X, otherwise yield Y</dd>
20795+
<dt><tt>X</tt> (differentiable) : T</dt>
20796+
<dd>values selected at indices where condition is True</dd>
20797+
<dt><tt>Y</tt> (differentiable) : T</dt>
20798+
<dd>values selected at indices where condition is False</dd>
20799+
</dl>
20800+
20801+
#### Outputs
20802+
20803+
<dl>
20804+
<dt><tt>output</tt> (differentiable) : T</dt>
20805+
<dd>Tensor of shape equal to the broadcasted shape of condition, X, and Y.</dd>
20806+
</dl>
20807+
20808+
#### Type Constraints
20809+
20810+
<dl>
20811+
<dt><tt>B</tt> : tensor(bool)</dt>
20812+
<dd>Constrain to boolean tensors.</dd>
20813+
<dt><tt>T</tt> : tensor(uint8), tensor(uint16), tensor(uint32), tensor(uint64), tensor(int8), tensor(int16), tensor(int32), tensor(int64), tensor(bfloat16), tensor(float16), tensor(float), tensor(double), tensor(string), tensor(bool), tensor(complex64), tensor(complex128)</dt>
20814+
<dd>Constrain input and output types to all tensor types (including bfloat).</dd>
20815+
</dl>
20816+
20817+
## Version 17 of the default ONNX operator set
20818+
### <a name="SequenceMap-17"></a>**SequenceMap-17**</a>
2077520819

2077620820
Applies a sub-graph to each sample in the input sequence(s).
2077720821

@@ -20790,7 +20834,7 @@ This version of the operator has been available since version 16 of the default
2079020834

2079120835
#### Version
2079220836

20793-
This version of the operator has been available since version 16 of the default ONNX operator set.
20837+
This version of the operator has been available since version 17 of the default ONNX operator set.
2079420838

2079520839
#### Attributes
2079620840

@@ -20824,49 +20868,6 @@ This version of the operator has been available since version 16 of the default
2082420868
<dd>Constrain to any tensor or sequence type.</dd>
2082520869
</dl>
2082620870

20827-
### <a name="Where-16"></a>**Where-16**</a>
20828-
20829-
Return elements, either from X or Y, depending on condition.
20830-
Where behaves like
20831-
[numpy.where](https://docs.scipy.org/doc/numpy/reference/generated/numpy.where.html)
20832-
with three parameters.
20833-
20834-
This operator supports **multidirectional (i.e., Numpy-style) broadcasting**; for more details please check [the doc](Broadcasting.md).
20835-
20836-
**History**
20837-
- Version 16 adds bfloat16 to the types allowed (for the second and third parameter).
20838-
20839-
#### Version
20840-
20841-
This version of the operator has been available since version 16 of the default ONNX operator set.
20842-
20843-
#### Inputs
20844-
20845-
<dl>
20846-
<dt><tt>condition</tt> (non-differentiable) : B</dt>
20847-
<dd>When True (nonzero), yield X, otherwise yield Y</dd>
20848-
<dt><tt>X</tt> (differentiable) : T</dt>
20849-
<dd>values selected at indices where condition is True</dd>
20850-
<dt><tt>Y</tt> (differentiable) : T</dt>
20851-
<dd>values selected at indices where condition is False</dd>
20852-
</dl>
20853-
20854-
#### Outputs
20855-
20856-
<dl>
20857-
<dt><tt>output</tt> (differentiable) : T</dt>
20858-
<dd>Tensor of shape equal to the broadcasted shape of condition, X, and Y.</dd>
20859-
</dl>
20860-
20861-
#### Type Constraints
20862-
20863-
<dl>
20864-
<dt><tt>B</tt> : tensor(bool)</dt>
20865-
<dd>Constrain to boolean tensors.</dd>
20866-
<dt><tt>T</tt> : tensor(uint8), tensor(uint16), tensor(uint32), tensor(uint64), tensor(int8), tensor(int16), tensor(int32), tensor(int64), tensor(bfloat16), tensor(float16), tensor(float), tensor(double), tensor(string), tensor(bool), tensor(complex64), tensor(complex128)</dt>
20867-
<dd>Constrain input and output types to all tensor types (including bfloat).</dd>
20868-
</dl>
20869-
2087020871
# ai.onnx.preview.training
2087120872
## Version 1 of the 'ai.onnx.preview.training' operator set
2087220873
### <a name="ai.onnx.preview.training.Adagrad-1"></a>**ai.onnx.preview.training.Adagrad-1**</a>

docs/Operators.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ For an operator input/output's differentiability, it can be differentiable,
180180
|<a href="#MeanVarianceNormalization">MeanVarianceNormalization</a>|<a href="Changelog.md#MeanVarianceNormalization-13">13</a>, <a href="Changelog.md#MeanVarianceNormalization-9">9</a>|
181181
|<a href="#NegativeLogLikelihoodLoss">NegativeLogLikelihoodLoss</a>|<a href="Changelog.md#NegativeLogLikelihoodLoss-13">13</a>, <a href="Changelog.md#NegativeLogLikelihoodLoss-12">12</a>|
182182
|<a href="#Range">Range</a>|<a href="Changelog.md#Range-11">11</a>|
183-
|<a href="#SequenceMap">SequenceMap</a>|<a href="Changelog.md#SequenceMap-16">16</a>|
183+
|<a href="#SequenceMap">SequenceMap</a>|<a href="Changelog.md#SequenceMap-17">17</a>|
184184
|<a href="#Softmax">Softmax</a>|<a href="Changelog.md#Softmax-13">13</a>, <a href="Changelog.md#Softmax-11">11</a>, <a href="Changelog.md#Softmax-1">1</a>|
185185
|<a href="#SoftmaxCrossEntropyLoss">SoftmaxCrossEntropyLoss</a>|<a href="Changelog.md#SoftmaxCrossEntropyLoss-13">13</a>, <a href="Changelog.md#SoftmaxCrossEntropyLoss-12">12</a>|
186186

@@ -19694,7 +19694,7 @@ This version of the operator has been available since version 11 of the default
1969419694

1969519695
#### Version
1969619696

19697-
This version of the operator has been available since version 16 of the default ONNX operator set.
19697+
This version of the operator has been available since version 17 of the default ONNX operator set.
1969819698

1969919699
#### Attributes
1970019700

onnx/backend/test/data/node/test_sequence_map_add_1_sequence_1_tensor/model.onnx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@
2525
y0"
2626

2727

28-
NB
28+
NB

onnx/backend/test/data/node/test_sequence_map_add_2_sequences/model.onnx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@
2626
y0"
2727

2828

29-
NB
29+
NB
Binary file not shown.

onnx/backend/test/data/node/test_sequence_map_extract_shapes/model.onnx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@
2323

2424

2525

26-
B
26+
B
Binary file not shown.

onnx/backend/test/data/node/test_sequence_map_identity_1_sequence/model.onnx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ n
1717
y"
1818

1919

20-
NB
20+
NB

onnx/backend/test/data/node/test_sequence_map_identity_1_sequence_1_tensor/model.onnx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@
3333
y1"
3434

3535

36-
MB
36+
MB

0 commit comments

Comments
 (0)