Marks this FuncGraph as unsaveable. Any attempts to export this FuncGraph will raise an error with the specified message. Args: error_message: List or string containing the error message to be raised when saving this FuncGraph to SavedModel.
(self, error_message)
| 708 | } |
| 709 | |
| 710 | def mark_as_unsaveable(self, error_message): |
| 711 | """Marks this FuncGraph as unsaveable. |
| 712 | |
| 713 | Any attempts to export this FuncGraph will raise an error with the specified |
| 714 | message. |
| 715 | |
| 716 | Args: |
| 717 | error_message: List or string containing the error message to be raised |
| 718 | when saving this FuncGraph to SavedModel. |
| 719 | """ |
| 720 | self._saveable = False |
| 721 | if isinstance(error_message, str): |
| 722 | error_message = [error_message] |
| 723 | self._saving_errors.update(error_message) |
| 724 | |
| 725 | @property |
| 726 | def saveable(self): |