Revert "[Core] zero-copy serializer for pytorch (#12344)" (#12469)

This reverts commit 0a505ca8
This commit is contained in:
Kai Fricke
2020-11-28 19:06:02 +01:00
committed by GitHub
parent 9ad0f173d6
commit 1d0ade1b93
3 changed files with 1 additions and 99 deletions
-2
View File
@@ -26,7 +26,6 @@ from ray._raylet import (
MessagePackSerializedObject,
RawSerializedObject,
)
from ray import serialization_addons
logger = logging.getLogger(__name__)
@@ -156,7 +155,6 @@ class SerializationContext:
# Because objects have default __reduce__ method, we only need to
# treat ObjectRef specifically.
self._register_cloudpickle_reducer(ray.ObjectRef, object_ref_reducer)
serialization_addons.apply(self)
def _register_cloudpickle_reducer(self, cls, reducer):
pickle.CloudPickler.dispatch[cls] = reducer