Upsurge
Upsurge copied to clipboard
Tensor slice indexing problem
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