torch.at_error_index_out_of_bounds
export type at_error_index_out_of_bounds<
Index extends number,
DimSize extends number,
> = ErrorShape<`at_error_index_out_of_bounds<index=${Index}, size=${DimSize}>`>;Indexextends numberDimSizeextends numberIndex out of bounds error for .at() indexing. Occurs when an integer index in .at() exceeds dimension size.
Examples
const a = torch.zeros(4, 5);
const b = a.at(10); // ERROR: index=10 >= size=4
// b.shape is at_error_index_out_of_bounds<10, 4>