bayespy.utils.misc.squeeze

bayespy.utils.misc.squeeze(X)[source]

Remove leading axes that have unit length.

For instance, a shape (1,1,4,1,3) will be reshaped to (4,1,3).