torch.narrow_error_start_out_of_bounds
export type narrow_error_start_out_of_bounds<
Start extends number,
DimSize extends number,
Dim extends number,
> = ErrorShape<`narrow_error_start_out_of_bounds<start=${Start}, size=${DimSize}, dim=${Dim}>`>;Startextends numberDimSizeextends numberDimextends numberNarrow start out of bounds error. Occurs when narrow start index exceeds dimension size.
Examples
const a = torch.zeros(4, 5); // dim 0 has size 4
const b = a.narrow(0, 5, 2); // ERROR: start=5 >= size=4
// b.shape is narrow_error_start_out_of_bounds<5, 4, 0>