utilities 模块

分布式方案的实用工具函数。

PollForMaster

分布式方案的实用工具函数。

函数

get_unique_download_path

使路径对节点唯一的临时函数

: return:附加当前排名的路径字符串

get_unique_download_path(download_file: str) -> str

参数

download_file

horovod_initialized

horovod_initialized(func: Callable[[…], Any]) -> Callable[[…], Any]

参数

func

is_master_process

用于确定当前进程是否为 master 的函数。

is_master_process() -> bool

返回

用于确定此进程是否为 master 的布尔值。