torch.SqueezeShape
export type SqueezeShape<
S extends Shape,
Dim extends number | undefined,
> = number extends S['length']
? DynamicShape
: Dim extends undefined
? FilterOnes<S>
: Dim extends number
? SqueezeAt<S, Dim>
: DynamicShape;Sextends ShapeDimextends number | undefinedCompute output shape of squeeze.