mirror of
https://github.com/wassname/ray.git
synced 2026-07-10 03:46:39 +08:00
This reverts commit 0a505ca8
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user