Skip to content

Commit

Permalink
Fix the notations for dynamic_update_slice and dynamic_slice (#1040)
Browse files Browse the repository at this point in the history
`adjusted_start_indices` seems like a 1-d tensor from the type of
`shape(operand)` in `clamp(0, start_indices, shape(operand)
-slice_sizes)`.
  • Loading branch information
sdasgup3 authored Feb 5, 2023
1 parent ffd745f commit 90f16b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -2293,7 +2293,7 @@ the slice starting at `start_indices` is updated with the values in `update`.

More formally, `result[i0, ..., iR-1]` is defined as:

* `update[j0, ..., jR-1]` if `jd = adjusted_start_indices[d][] + id` where
* `update[j0, ..., jR-1]` if `id = adjusted_start_indices[d][] + jd` where
`adjusted_start_indices =
clamp(0, start_indices, shape(operand) - shape(update))`.
* `operand[i0, ..., iR-1]` otherwise.
Expand Down

0 comments on commit 90f16b2

Please sign in to comment.