Upsurge icon indicating copy to clipboard operation
Upsurge copied to clipboard

Tensor slice indexing problem

Open alejandro-isaza opened this issue 9 years ago • 0 comments

To keep the convention with swift slices, tensor slices should be indexed starting at startIndex instead of 0. The following is an error:

let tensor = Tensor(...)
let slice = tensor[50..<100]
let value = slice[0] // 0 is not a vlid index for this slice

alejandro-isaza avatar Dec 09 '15 20:12 alejandro-isaza