def unbroadcast(x, *axes):
 rval = Rebroadcast(*[(axis, False) for axis in axes])(x)
 return theano.tensor.opt.apply_rebroadcast_opt(rval)

def unbroadcast ( x , * axes ) : rval = Rebroadcast ( * [ ( axis , False ) for axis in axes ] ) ( x ) return theano . tensor . opt . apply_rebroadcast_opt ( rval )
make the input impossible to broadcast in the specified axes .