paddlespeech.vector.utils.time 模块

class paddlespeech.vector.utils.time.Timer(total_step: int)[来源]

基础: object

计算奔跑速度和预计到达时间(ETA)

Attributes:
eta
ips
is_running
timing

方法

计数

开始

停止

count() int[来源]
property eta: str
property ips: float
property is_running: bool
start()[来源]
stop()[来源]
property timing: float
paddlespeech.vector.utils.time.seconds_to_hms(seconds: int) str[来源]

将秒数转换为hh:mm:ss