[xlang] Cross language serialize ActorHandle (#7134)

This commit is contained in:
fyrestone
2020-02-17 20:44:56 +08:00
committed by GitHub
parent b079787c59
commit a6b8bd47b0
27 changed files with 498 additions and 197 deletions
+2 -3
View File
@@ -138,9 +138,8 @@ class SerializationContext:
return obj._serialization_helper(True)
def actor_handle_deserializer(serialized_obj):
new_handle = ray.actor.ActorHandle.__new__(ray.actor.ActorHandle)
new_handle._deserialization_helper(serialized_obj, True)
return new_handle
return ray.actor.ActorHandle._deserialization_helper(
serialized_obj, True)
self._register_cloudpickle_serializer(
ray.actor.ActorHandle,