swift
2ed1ad28 - [TF] Fix `ShapedArraySlice` index subscript. (#23737)

Commit
7 years ago
[TF] Fix `ShapedArraySlice` index subscript. (#23737) Subscripting `ShapedArraySlice` at an index should creating an element slice with `bounds` reset to `nil`. Example: ``` let array = ShapedArray(repeating: 1, shape: [4, 4]) let slice = array[0..<2] // bounds: .some(0..<2), indices: 0..<2 let element = slice[0] // bounds: nil, indices: 0..<4 ```
Author
Committer
Parents
Loading