torch.permute_error_dimension_count_mismatch
export type permute_error_dimension_count_mismatch<
Expected extends number,
Got extends number,
> = ErrorShape<`permute_error_dimension_count_mismatch<expected=${Expected}, got=${Got}>`>;Expectedextends numberGotextends numberPermute dimension count mismatch error. Occurs when the number of dimensions in permute doesn't match tensor rank.
Examples
const a = torch.zeros(2, 3, 4); // 3D tensor
const b = a.permute(1, 0); // ERROR: expected 3 dims, got 2
// b.shape is permute_error_dimension_count_mismatch<3, 2>