Closed csustYyh closed 1 year ago
I am sorry to bother you. When I used top-k, I found a problem that my input values might be large sometimes. After 'values.exp_()', there will be 'INF'. To avoid overflow, I change the computation as: Is it reasonable to make this change?
I am sorry to bother you. When I used top-k, I found a problem that my input values might be large sometimes. After 'values.exp_()', there will be 'INF'. To avoid overflow, I change the computation as: Is it reasonable to make this change?