Commit b4302ee7 authored by Yong Tang's avatar Yong Tang
Browse files

Fix incorrect error message in TensorArray.scatter



This fix tries to fix the issue raised in 12403 where the
error message in TensorArray.scatter is incorrect. Specifically, in
```
      OP_REQUIRES(
          ctx, max_index < array_size,
          errors::InvalidArgument("Max scatter index must be <= array size (",
                                  max_index, " vs. ", array_size, ")"));
```

The `<= array size` in error message should be `< array size` as
the maximum value of index (0-based) should always be smaller than array size.

This fix fixes 12403.

Signed-off-by: default avatarYong Tang <yong.tang.github@outlook.com>
parent 12094919
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment