RLSolver icon indicating copy to clipboard operation
RLSolver copied to clipboard

A problem occurs in TNCO env

Open spicywei opened this issue 2 years ago • 3 comments

37e3892a88c604e78c8305f7ee71222 When N>1500, the existing code overflows and results in inf Tried to fix it by increasing the temp_power variable so that it can calculate a larger range of floating point numbers, but it didn't work.

spicywei avatar Apr 03 '23 09:04 spicywei

Thank you @Yonv1943 for the help! The original limit of N is 1024, and the maximum maxpower is automatically set with max - 96 by max_tmp_power = int(mult_pow_timess.max().item() - 960), 90 being a value slightly less than the limit of 1024. The problem was then solved by computing the large number with Python's native math.log10(int). Currently can support N up to 20,000.

spicywei avatar Apr 03 '23 14:04 spicywei

如果有时间,请帮忙把标题加上方便以后搜索的信息。例如: Computing large numbers dynamically and adaptively。

我没有修改标题的权限 @spicywei

Yonv1943 avatar Apr 07 '23 09:04 Yonv1943

Ok, thanks for the advice!

spicywei avatar Apr 07 '23 09:04 spicywei