def separate(x, axis=0):
 shape = list(x.shape)
 del shape[axis]
 ys = split_axis.split_axis(x, x.shape[axis], axis, force_tuple=True)
 return tuple((reshape.reshape(y, shape) for y in ys))

def separate ( x , axis = 0 ) : shape = list ( x . shape ) del shape [ axis ] ys = split_axis . split_axis ( x , x . shape [ axis ] , axis , force_tuple = True ) return tuple ( ( reshape . reshape ( y , shape ) for y in ys ) )
separates an array along a given axis .