mirror of
https://github.com/wassname/ray.git
synced 2026-07-12 04:57:05 +08:00
Moved Imagenet loading library to example applications; Changed code to return filenames as well as arrays (#257)
This commit is contained in:
committed by
Robert Nishihara
parent
8952ff8cf9
commit
292abaa41c
@@ -233,7 +233,7 @@ def get(objref, worker=global_worker):
|
||||
print_task_info(ray.lib.task_info(worker.handle), worker.mode)
|
||||
value = worker.get_object(objref)
|
||||
if isinstance(value, RayFailedObject):
|
||||
raise Exception("The task that created this object reference failed with error message: {}".format(value.error_message))
|
||||
raise Exception("The task that created this object reference failed with error message:\n{}".format(value.error_message))
|
||||
return value
|
||||
|
||||
def put(value, worker=global_worker):
|
||||
|
||||
Reference in New Issue
Block a user