Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

fix sharedstorage config convert #4059

Merged
merged 4 commits into from
Aug 11, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion nni/experiment/config/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class SharedStorageConfig(ConfigBase):
nfs_server: Optional[str] = None
exported_directory: Optional[str] = None

def __init__(self, *, _base_path: Optional[Path], **kwargs):
def __init__(self, *, _base_path: Optional[Path] = None, **kwargs):
kwargs = {util.case_insensitive(key): value for key, value in kwargs.items()}
if 'localmountpoint' in kwargs:
kwargs['localmountpoint'] = Path(kwargs['localmountpoint']).expanduser()
Expand Down