mirror of
https://github.com/wassname/ray.git
synced 2026-08-17 11:25:34 +08:00
rename test_path -> worker_path (#128)
This commit is contained in:
committed by
Philipp Moritz
parent
aaa0a514fa
commit
ac65f1031e
@@ -8,11 +8,10 @@ import ray.datasets.imagenet as imagenet
|
||||
class ImageNetTest(unittest.TestCase):
|
||||
|
||||
def testImageNetLoading(self):
|
||||
test_dir = os.path.dirname(os.path.abspath(__file__))
|
||||
test_path = os.path.join(test_dir, "test_worker.py")
|
||||
services.start_singlenode_cluster(return_drivers=False, num_workers_per_objstore=5, worker_path=test_path)
|
||||
worker_path = os.path.join(os.path.dirname(os.path.abspath(__file__)), "test_worker.py")
|
||||
services.start_singlenode_cluster(return_drivers=False, num_workers_per_objstore=5, worker_path=worker_path)
|
||||
|
||||
chunk_name = os.path.join(test_dir, "..", "data", "mini.tar")
|
||||
chunk_name = os.path.join(os.path.dirname(os.path.abspath(__file__)), "../data/mini.tar")
|
||||
tar = tarfile.open(chunk_name, mode= "r")
|
||||
chunk = imagenet.load_chunk(tar, size=(256, 256))
|
||||
self.assertEqual(chunk.shape, (2, 256, 256, 3))
|
||||
|
||||
Reference in New Issue
Block a user