MCPcopy Index your code
hub / github.com/Project-MONAI/MONAI / _process_bundle_dir

Function _process_bundle_dir

monai/bundle/scripts.py:436–443  ·  view source on GitHub ↗
(bundle_dir: PathLike | None = None)

Source from the content-addressed store, hash-verified

434
435
436def _process_bundle_dir(bundle_dir: PathLike | None = None) -> Path:
437 if bundle_dir is None:
438 get_dir, has_home = optional_import("torch.hub", name="get_dir")
439 if has_home:
440 bundle_dir = Path(get_dir()) / "bundle"
441 else:
442 raise ValueError("bundle_dir=None, but no suitable default directory computed. Upgrade Pytorch to 1.6+ ?")
443 return Path(bundle_dir)
444
445
446def download(

Callers 2

downloadFunction · 0.85
loadFunction · 0.85

Calls 1

optional_importFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…