If ``model_path`` is passed to the constructor, it must be a :obj:`str` pointing to an existing ``mlpackage`` on disk. The :py:class:`MultiFunctionDescriptor` instance will be initiated with the functions in ``model_path``.
(self, model_path: _Optional[str] = None)
| 1451 | """ |
| 1452 | |
| 1453 | def __init__(self, model_path: _Optional[str] = None): |
| 1454 | """ |
| 1455 | If ``model_path`` is passed to the constructor, it must be a :obj:`str` pointing to an |
| 1456 | existing ``mlpackage`` on disk. The :py:class:`MultiFunctionDescriptor` instance will be initiated |
| 1457 | with the functions in ``model_path``. |
| 1458 | """ |
| 1459 | self._default_function_name = None |
| 1460 | self._name_to_source_function = {} |
| 1461 | self._modelpath_to_functions = {} |
| 1462 | self._modelpath_to_spec = {} |
| 1463 | |
| 1464 | if model_path is not None: |
| 1465 | self.add_model(model_path) |
| 1466 | |
| 1467 | def _functions(self) -> _Dict[str, _Tuple[str, str]]: |
| 1468 | """ |