fix all_version print

pull/879/head
Hui Zhang 3 years ago
parent dd06472432
commit 92832ef590

@ -18,6 +18,7 @@ import os
import random
import sys
from contextlib import contextmanager
from pprint import pformat
from typing import List
import numpy as np
@ -41,9 +42,7 @@ def all_version():
"paddle_commit": paddle.version.commit,
"soundfile": soundfile.__version__,
}
logger.info("Deps Module Version:")
for k, v in vers.items():
logger.info(f"{k}: {v}")
logger.info(f"Deps Module Version:{pformat(vers.items())}")
@contextmanager
@ -54,7 +53,7 @@ def UpdateConfig(config):
config.freeze()
def seed_all(seed: int=210329):
def seed_all(seed: int=20210329):
"""freeze random generator seed."""
np.random.seed(seed)
random.seed(seed)
@ -80,7 +79,7 @@ def print_arguments(args, info=None):
if info:
filename = info["__file__"]
filename = os.path.basename(filename)
print(f"----------- {filename} Configuration Arguments -----------")
print(f"----------- {filename} Arguments -----------")
for arg, value in sorted(vars(args).items()):
print("%s: %s" % (arg, value))
print("-----------------------------------------------------------")

Loading…
Cancel
Save