TypeTensor - v0.1.0
    Preparing search index...

    Type Alias BatchDims<S>

    BatchDims: S extends readonly [...(infer Batch), unknown, unknown]
        ? Batch extends readonly unknown[] ? Batch : never
        : never

    Get all dimensions except the last two (batch dimensions for matrix ops)

    Type Parameters

    type BatchDims = BatchDims<[5, 2, 3, 4]> // readonly [5, 2]