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

Method serialize

tensorflow/python/ops/boosted_trees_ops.py:282–290  ·  view source on GitHub ↗

Serializes the ensemble into proto and returns the serialized proto. Returns: stamp_token: int64 scalar Tensor to denote the stamp of the resource. serialized_proto: string scalar Tensor of the serialized proto.

(self)

Source from the content-addressed store, hash-verified

280 array_ops.identity(nodes_range, name='last_layer_nodes_range'))
281
282 def serialize(self):
283 """Serializes the ensemble into proto and returns the serialized proto.
284
285 Returns:
286 stamp_token: int64 scalar Tensor to denote the stamp of the resource.
287 serialized_proto: string scalar Tensor of the serialized proto.
288 """
289 return gen_boosted_trees_ops.boosted_trees_serialize_ensemble(
290 self.resource_handle)
291
292 def deserialize(self, stamp_token, serialized_proto):
293 """Deserialize the input proto and resets the ensemble from it.

Calls

no outgoing calls