Adjust the round_up_seq logic in Gaudi backend (#3224)

Signed-off-by: Liu, Kaixuan <kaixuan.liu@intel.com>
This commit is contained in:
kaixuanliu 2025-05-12 15:58:43 +08:00 committed by GitHub
parent c94f415af4
commit 535ce23827
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -73,7 +73,7 @@ def torch_compile_for_eager(func):
def round_up_seq(number, k, base):
exponent = math.ceil(math.log(number / k, base))
exponent = max(0, math.ceil(math.log(number / k, base)))
return int(k * (base**exponent))