I have a few friends from VTU. According to them, only the marks obtained in your first attempt at the subjects in that semester are counted in your GPA/CGPA/Percentage.
The marks obtained in the backlog subjects in the second attempt are not considered at all, even if you score full marks.