Skip to content

Commit 67a3c1b

Browse files
committed
Refactor check_environment in sanity.py: replace fn_pdc with fn_cd and fn_cpd for improved flexibility in dataset checks
1 parent 3f5805c commit 67a3c1b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

mle/sanity.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@
1010
from mle.vars import ExpConfig
1111

1212

13-
def check_environment(config: ExpConfig, *, fn_pdc: Callable[[ExpConfig], str] = check_preprocessed_dataset) -> dict[
14-
str, Any]:
13+
def check_environment(config: ExpConfig, *, fn_cd: Callable[[ExpConfig], str] = check_dataset,
14+
fn_cpd: Callable[[ExpConfig], str] = check_preprocessed_dataset) -> dict[str, Any]:
1515
try:
1616
gpus = get_all_gpu_info()
1717
except NVMLError:
1818
gpus = {}
19-
return {"dataset": check_dataset(config), "preprocessed_dataset": fn_pdc(config), "gpus": gpus,
19+
return {"dataset": fn_cd(config), "preprocessed_dataset": fn_cpd(config), "gpus": gpus,
2020
"cuda": torch.version.cuda}
2121

2222

0 commit comments

Comments
 (0)