Returns the path for the underlying compiled ML Model. **Important**: This path is available only for the lifetime of this Python object. If you want the compiled model to persist, you need to make a copy.
(self)
| 756 | |
| 757 | |
| 758 | def get_compiled_model_path(self): |
| 759 | """ |
| 760 | Returns the path for the underlying compiled ML Model. |
| 761 | |
| 762 | **Important**: This path is available only for the lifetime of this Python object. If you want |
| 763 | the compiled model to persist, you need to make a copy. |
| 764 | |
| 765 | """ |
| 766 | if self.__proxy__ is None: |
| 767 | raise Exception("This model was not loaded or compiled with the Core ML Framework.") |
| 768 | |
| 769 | return self.__proxy__.get_compiled_model_path() |
| 770 | |
| 771 | |
| 772 | def get_spec(self): |
no outgoing calls