mirror of
https://github.com/vale981/ray
synced 2025-03-06 02:21:39 -05:00
arrays -> array (#172)
This commit is contained in:
parent
814c5b1eb8
commit
902cac3089
18 changed files with 21 additions and 21 deletions
|
@ -22,5 +22,5 @@ script:
|
||||||
- source setup-env.sh
|
- source setup-env.sh
|
||||||
- cd test
|
- cd test
|
||||||
- python runtest.py
|
- python runtest.py
|
||||||
- python arrays_test.py
|
- python array_test.py
|
||||||
- python datasets_test.py
|
- python datasets_test.py
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import numpy as np
|
import numpy as np
|
||||||
from typing import List
|
from typing import List
|
||||||
import ray
|
import ray
|
||||||
import ray.arrays.remote as ra
|
import ray.array.remote as ra
|
||||||
|
|
||||||
@ray.remote([List[ray.ObjRef]], [int])
|
@ray.remote([List[ray.ObjRef]], [int])
|
||||||
def num_images(batches):
|
def num_images(batches):
|
||||||
|
|
|
@ -7,8 +7,8 @@ import ray.datasets.imagenet
|
||||||
import ray
|
import ray
|
||||||
import ray.services as services
|
import ray.services as services
|
||||||
import ray.worker as worker
|
import ray.worker as worker
|
||||||
import ray.arrays.remote as ra
|
import ray.array.remote as ra
|
||||||
import ray.arrays.distributed as da
|
import ray.array.distributed as da
|
||||||
|
|
||||||
import functions
|
import functions
|
||||||
|
|
||||||
|
|
|
@ -6,8 +6,8 @@ import ray
|
||||||
import ray.services as services
|
import ray.services as services
|
||||||
import ray.worker as worker
|
import ray.worker as worker
|
||||||
|
|
||||||
import ray.arrays.remote as ra
|
import ray.array.remote as ra
|
||||||
import ray.arrays.distributed as da
|
import ray.array.distributed as da
|
||||||
|
|
||||||
import functions
|
import functions
|
||||||
|
|
||||||
|
|
|
@ -3,8 +3,8 @@ import argparse
|
||||||
import ray
|
import ray
|
||||||
import ray.worker as worker
|
import ray.worker as worker
|
||||||
|
|
||||||
import ray.arrays.remote as ra
|
import ray.array.remote as ra
|
||||||
import ray.arrays.distributed as da
|
import ray.array.distributed as da
|
||||||
|
|
||||||
import functions
|
import functions
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
from typing import List
|
from typing import List
|
||||||
import numpy as np
|
import numpy as np
|
||||||
import ray.arrays.remote as ra
|
import ray.array.remote as ra
|
||||||
import ray
|
import ray
|
||||||
|
|
||||||
__all__ = ["BLOCK_SIZE", "DistArray", "assemble", "zeros", "ones", "copy",
|
__all__ = ["BLOCK_SIZE", "DistArray", "assemble", "zeros", "ones", "copy",
|
|
@ -1,7 +1,7 @@
|
||||||
from typing import List
|
from typing import List
|
||||||
|
|
||||||
import numpy as np
|
import numpy as np
|
||||||
import ray.arrays.remote as ra
|
import ray.array.remote as ra
|
||||||
import ray
|
import ray
|
||||||
|
|
||||||
from core import *
|
from core import *
|
|
@ -1,7 +1,7 @@
|
||||||
from typing import List
|
from typing import List
|
||||||
|
|
||||||
import numpy as np
|
import numpy as np
|
||||||
import ray.arrays.remote as ra
|
import ray.array.remote as ra
|
||||||
import ray
|
import ray
|
||||||
|
|
||||||
from core import *
|
from core import *
|
|
@ -5,8 +5,8 @@ import ray
|
||||||
import ray.services as services
|
import ray.services as services
|
||||||
import ray.worker as worker
|
import ray.worker as worker
|
||||||
|
|
||||||
import ray.arrays.remote as ra
|
import ray.array.remote as ra
|
||||||
import ray.arrays.distributed as da
|
import ray.array.distributed as da
|
||||||
|
|
||||||
parser = argparse.ArgumentParser(description='Parse addresses for the worker to connect to.')
|
parser = argparse.ArgumentParser(description='Parse addresses for the worker to connect to.')
|
||||||
parser.add_argument("--scheduler-address", default="127.0.0.1:10001", type=str, help="the scheduler's address")
|
parser.add_argument("--scheduler-address", default="127.0.0.1:10001", type=str, help="the scheduler's address")
|
||||||
|
|
|
@ -8,10 +8,10 @@ import time
|
||||||
import subprocess32 as subprocess
|
import subprocess32 as subprocess
|
||||||
import os
|
import os
|
||||||
|
|
||||||
import ray.arrays.remote as ra
|
import ray.array.remote as ra
|
||||||
import ray.arrays.distributed as da
|
import ray.array.distributed as da
|
||||||
|
|
||||||
class ArraysSingleTest(unittest.TestCase):
|
class RemoteArrayTest(unittest.TestCase):
|
||||||
|
|
||||||
def testMethods(self):
|
def testMethods(self):
|
||||||
worker_path = os.path.join(os.path.dirname(os.path.abspath(__file__)), "test_worker.py")
|
worker_path = os.path.join(os.path.dirname(os.path.abspath(__file__)), "test_worker.py")
|
||||||
|
@ -44,7 +44,7 @@ class ArraysSingleTest(unittest.TestCase):
|
||||||
|
|
||||||
services.cleanup()
|
services.cleanup()
|
||||||
|
|
||||||
class ArraysDistTest(unittest.TestCase):
|
class DistributedArrayTest(unittest.TestCase):
|
||||||
|
|
||||||
def testSerialization(self):
|
def testSerialization(self):
|
||||||
[w] = services.start_singlenode_cluster(return_drivers=True)
|
[w] = services.start_singlenode_cluster(return_drivers=True)
|
|
@ -9,8 +9,8 @@ import subprocess32 as subprocess
|
||||||
import os
|
import os
|
||||||
|
|
||||||
import test_functions
|
import test_functions
|
||||||
import ray.arrays.remote as ra
|
import ray.array.remote as ra
|
||||||
import ray.arrays.distributed as da
|
import ray.array.distributed as da
|
||||||
|
|
||||||
RAY_TEST_OBJECTS = [[1, "hello", 3.0], 42, "hello world", 42.0,
|
RAY_TEST_OBJECTS = [[1, "hello", 3.0], 42, "hello world", 42.0,
|
||||||
(1.0, "hi"), None, (None, None), ("hello", None),
|
(1.0, "hi"), None, (None, None), ("hello", None),
|
||||||
|
|
|
@ -3,8 +3,8 @@ import argparse
|
||||||
import numpy as np
|
import numpy as np
|
||||||
|
|
||||||
import test_functions
|
import test_functions
|
||||||
import ray.arrays.remote as ra
|
import ray.array.remote as ra
|
||||||
import ray.arrays.distributed as da
|
import ray.array.distributed as da
|
||||||
import ray.datasets.imagenet
|
import ray.datasets.imagenet
|
||||||
|
|
||||||
import ray
|
import ray
|
||||||
|
|
Loading…
Add table
Reference in a new issue