mirror of
https://github.com/wassname/ray.git
synced 2026-08-17 11:25:34 +08:00
Deprecate num_workers argument to ray.init and ray start. (#3114)
* Remove num_workers argument. * Fix * Fix
This commit is contained in:
committed by
Philipp Moritz
parent
9868af4c7c
commit
32f0d6b77e
@@ -7,7 +7,7 @@ import numpy as np
|
||||
import ray
|
||||
|
||||
if __name__ == "__main__":
|
||||
ray.init(num_workers=0)
|
||||
ray.init(num_cpus=0)
|
||||
|
||||
A = np.ones(2**31 + 1, dtype="int8")
|
||||
a = ray.put(A)
|
||||
|
||||
Reference in New Issue
Block a user