import_util
Author: Heli Qi Affiliation: NAIST Date: 2022.07
get_idle_gpu(ngpu=1, id_only=False)
Find idle GPUs for distributed learning.
Source code in speechain/utilbox/import_util.py
get_idle_port()
Find an idle port to used for distributed learning.
Source code in speechain/utilbox/import_util.py
parse_path_args(input_path)
This function parses the input path string into valid path before its later usage.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
input_path
|
str
|
str If input_path starts with '/', no parsing will be done; Otherwise, this function will return its absolute path in the toolkit root, i.e., SPEECHAIN_ROOT. |
required |
str
Type | Description |
---|---|
str
|
Parsed valid absolute path. |