def dstack(tup):
 return concatenate([cupy.atleast_3d(m) for m in tup], 2)

def dstack ( tup ) : return concatenate ( [ cupy . atleast_3d ( m ) for m in tup ] , 2 )
concatenate variables along third axis .