def repeat_elements(x, rep, axis):
 return T.repeat(x, rep, axis=axis)

def repeat_elements ( x , rep , axis ) : return T . repeat ( x , rep , axis = axis )
repeats the elements of a tensor along an axis .