fix str returned by get_int_from_str rather than expected int (#9667)
This commit is contained in:
parent
bf1bcf4a14
commit
c64e2248ef
1 changed files with 1 additions and 1 deletions
|
|
@ -58,7 +58,7 @@ def get_int_from_env(env_keys, default):
|
|||
val = int(os.environ.get(e, -1))
|
||||
if val >= 0:
|
||||
return val
|
||||
return default
|
||||
return int(default)
|
||||
|
||||
def train(
|
||||
# model/data params
|
||||
|
|
|
|||
Loading…
Reference in a new issue