(path: str, is_file=True)
| 5 | |
| 6 | |
| 7 | def ensure_dir(path: str, is_file=True): |
| 8 | if is_file: |
| 9 | pathlib.Path(path).parent.mkdir(parents=True, exist_ok=True) |
| 10 | else: |
| 11 | pathlib.Path(path).mkdir(parents=True, exist_ok=True) |
| 12 | return |
| 13 | |
| 14 | |
| 15 | def get_cache_path(model_repr:str, args) -> str: |
no outgoing calls
no test coverage detected