def get_compiled_model_path(self):
        """
        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.

        """
        if self.__proxy__ is None:
            raise Exception("This model was not loaded or compiled with the Core ML Framework.")

        return self.__proxy__.get_compiled_model_path()

        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.

        
coremltools/models/model.py