mirror of
https://github.com/wassname/ray.git
synced 2026-06-28 01:00:10 +08:00
calling register_custom_serializer require ray to be initialized (#7752)
This commit is contained in:
@@ -1391,6 +1391,9 @@ def register_custom_serializer(cls,
|
||||
use_dict: Deprecated.
|
||||
class_id (str): Unique ID of the class. Autogenerated if None.
|
||||
"""
|
||||
worker = global_worker
|
||||
worker.check_connected()
|
||||
|
||||
if use_pickle:
|
||||
raise DeprecationWarning(
|
||||
"`use_pickle` is no longer a valid parameter and will be removed "
|
||||
|
||||
Reference in New Issue
Block a user