Fix style issues.

This commit is contained in:
Fangjun Kuang 2021-10-29 12:15:09 +08:00
parent a7cf41d3ac
commit 6cbba14c3f

View File

@ -732,11 +732,12 @@ def rescore_with_whole_lattice(
logging.info( logging.info(
f"num_arcs before pruning: {inv_lattice.arcs.num_elements()}" f"num_arcs before pruning: {inv_lattice.arcs.num_elements()}"
) )
logging.info("This OOM is not an error. You can ignore it. " logging.info(
"If your model does not converge well, or --max-duration " "This OOM is not an error. You can ignore it. "
"is too large, or the input sound file is difficult to " "If your model does not converge well, or --max-duration "
"decode, you will meet this exception." "is too large, or the input sound file is difficult to "
) "decode, you will meet this exception."
)
# NOTE(fangjun): The choice of the threshold 1e-9 is arbitrary here # NOTE(fangjun): The choice of the threshold 1e-9 is arbitrary here
# to avoid OOM. You may need to fine tune it. # to avoid OOM. You may need to fine tune it.