Yoga for weight loss

How much time and how intense does the yoga have to be for it to help you lose weight and for it to change your body?