Skip to content

Commit

Permalink
iota op spec : replace "result_index" with "output_index" (#2272)
Browse files Browse the repository at this point in the history
iota op spec doesn't define `result` but uses `result_index`.
  • Loading branch information
abhigunj authored May 1, 2024
1 parent 131b480 commit 0f8e508
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docs/spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -3315,9 +3315,9 @@ separate outputs to improve clarity
Fills an `output` tensor with values in increasing order starting from zero
along the `iota_dimension` dimension. More formally,

`output[result_index] = constant(is_quantized(output) ?
quantize(result_index[iota_dimension], element_type(output)) :
result_index[iota_dimension], element_type(output))`.
`output[output_index] = constant(is_quantized(output) ?
quantize(output_index[iota_dimension], element_type(output)) :
output_index[iota_dimension], element_type(output))`.

#### Inputs

Expand All @@ -3327,9 +3327,9 @@ result_index[iota_dimension], element_type(output))`.

#### Outputs

| Name | Type | Constraints |
|----------|----------------------------------------------------------------------------------|-------------|
| `output` | tensor of integer, floating-point or complex type or per-tensor quantized tensor | (C1) |
| Name | Type | Constraints |
|----------|-----------------------------------------------------------------------------------|-------------|
| `output` | tensor of integer, floating-point, or complex type or per-tensor quantized tensor | (C1) |

#### Constraints

Expand Down

0 comments on commit 0f8e508

Please sign in to comment.