mirror of
https://github.com/hanzo-ml/kuberay.git
synced 2026-10-30 19:48:47 +00:00
9 lines
166 B
Python
9 lines
166 B
Python
import ray
|
|
|
|
@ray.remote(num_cpus=1)
|
|
class Actor:
|
|
pass
|
|
|
|
ray.init(namespace="default_namespace")
|
|
Actor.options(name="detached_actor", lifetime="detached").remote()
|