MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / mark_as_unsaveable

Method mark_as_unsaveable

tensorflow/python/framework/func_graph.py:710–723  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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):

Callers 3

_call_flatMethod · 0.80
nested_fMethod · 0.80

Calls 1

updateMethod · 0.45

Tested by 1

nested_fMethod · 0.64