Skip to content

Commit

Permalink
Fix a minor typo in operator Gather documentation (onnx#4125)
Browse files Browse the repository at this point in the history
* [Fix] A minor typo in operator Gather example

Signed-off-by: Yaoyao Ding <[email protected]>

* update def file

Signed-off-by: Yaoyao Ding <[email protected]>

* fix ci

Signed-off-by: Yaoyao Ding <[email protected]>

Co-authored-by: Chun-Wei Chen <[email protected]>
  • Loading branch information
yaoyaoding and jcwchen authored Apr 13, 2022
1 parent 527da93 commit f4687ed
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -15643,7 +15643,7 @@ This version of the operator has been available since version 13 of the default
Let
k = indices[i_{0}, ..., i_{q-1}]
Then
output[i_{0}, ..., i_{q-1}, j_{0}, ..., j_{r-2}] = input[j_{0}, k, j_{1}, ..., j_{r-2}]
output[j_{0}, i_{0}, ..., i_{q-1}, j_{1}, ..., j_{r-2}] = input[j_{0}, k, j_{1}, ..., j_{r-2}]

```
data = [
Expand Down
2 changes: 1 addition & 1 deletion docs/Operators.md
Original file line number Diff line number Diff line change
Expand Up @@ -6442,7 +6442,7 @@ expect(node, inputs=[input, W, R, B], outputs=[Y_h.astype(np.float32)], name='te
Let
k = indices[i_{0}, ..., i_{q-1}]
Then
output[i_{0}, ..., i_{q-1}, j_{0}, ..., j_{r-2}] = input[j_{0}, k, j_{1}, ..., j_{r-2}]
output[j_{0}, i_{0}, ..., i_{q-1}, j_{1}, ..., j_{r-2}] = input[j_{0}, k, j_{1}, ..., j_{r-2}]

```
data = [
Expand Down
2 changes: 1 addition & 1 deletion onnx/defs/tensor/defs.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1646,7 +1646,7 @@ axis = 1 :
Let
k = indices[i_{0}, ..., i_{q-1}]
Then
output[i_{0}, ..., i_{q-1}, j_{0}, ..., j_{r-2}] = input[j_{0}, k, j_{1}, ..., j_{r-2}]
output[j_{0}, i_{0}, ..., i_{q-1}, j_{1}, ..., j_{r-2}] = input[j_{0}, k, j_{1}, ..., j_{r-2}]
```
data = [
Expand Down

0 comments on commit f4687ed

Please sign in to comment.