mirror of
https://github.com/wassname/ray.git
synced 2026-06-28 01:16:06 +08:00
[xray] Basic actor support (#1835)
This commit is contained in:
committed by
Robert Nishihara
parent
313b864e66
commit
bf194db4bc
@@ -802,6 +802,8 @@ def actor_handle_from_class(Class, class_id, actor_creation_resources,
|
||||
actor_creation_resources,
|
||||
actor_method_cpus,
|
||||
ray.worker.global_worker)
|
||||
# Increment the actor counter to account for the creation task.
|
||||
actor_counter += 1
|
||||
|
||||
# Instantiate the actor handle.
|
||||
actor_object = cls.__new__(cls)
|
||||
|
||||
Reference in New Issue
Block a user