Cast rounded sequence to int

This commit is contained in:
regisss 2025-05-10 13:38:26 +00:00
parent 9c5ec4adca
commit 966606d717

View File

@ -74,7 +74,7 @@ def torch_compile_for_eager(func):
def round_up_seq(number, k, base): def round_up_seq(number, k, base):
exponent = math.ceil(math.log(number / k, base)) exponent = math.ceil(math.log(number / k, base))
return k * (base**exponent) return int(k * (base**exponent))
def iterate_powers_of_base(max_value, start, base): def iterate_powers_of_base(max_value, start, base):