Closed vieting closed 3 years ago
Generalize reshape to allow reshapes of (..., a*b, c,...) -> (..., a, b*c,...) or (..., a, b*c,...) -> (..., a*b, c,...).
reshape
(..., a*b, c,...) -> (..., a, b*c,...)
(..., a, b*c,...) -> (..., a*b, c,...)
Generalize
reshape
to allow reshapes of(..., a*b, c,...) -> (..., a, b*c,...)
or(..., a, b*c,...) -> (..., a*b, c,...)
.