improve clarify of comment
@@ -327,9 +327,12 @@ class Model(base_layer.Layer, version_utils.ModelVersionSelector):
return (deserialize_model_from_bytecode, serialize_model_as_bytecode(self))
else:
# SavedModel (and hence serialize_model_as_bytecode) only support built models,
- # but if the model is not built, it can be serialized as a plain Python object
- # Thus we call up the MRO to get an implementation of __reduce__,
- # possibly landing at object.__reduce__
+ # but if the model is not built,
+ # it _may_ be possible to serialize as a plain Python object,
+ # as long as the constituent parts (layers, optimizers, losses, etc.)
+ # can be serialized as plain Python objects.
+ # Thus we call up the MRO to get an implementation of __reduce__
+ # to try to pickle this Model as a plain Python object.
return super(Model, self).__reduce__()
def __deepcopy__(self, memo):
