Hello I also have the same problem in here.
first = (tmp1*slope1)
second = (tmp2*slope2)
third = first + second
        
final_score = torch.sum(third)
final_score = final_score/total


–> 137         final_score = torch.sum(third)
138         final_score = final_score/total
139         return final_score
RuntimeError: value cannot be converted to type double without overflow: inf

all of them is Varibale. So how to solve this? @HT_Liu