Skip to content

Commit 3a4138c

Browse files
committed
fix - AttributeError: 'RemoteFunction' object has no attribute 'option'
1 parent faa379b commit 3a4138c

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

corl/wcc/worker.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ def predict_wcc(anchor, num_actors, min_rcode, max_batch_size, model_path, top_k
487487

488488
# There're many unknown issues running GPU inference in ray worker...
489489
gpu_alloc = 1.0 / args.parallel
490-
p = [_predict.option(num_gpus=gpu_alloc).remote(model_path,
490+
p = [_predict.options(num_gpus=gpu_alloc).remote(model_path,
491491
max_batch_size,
492492
data_queue,
493493
infer_queue,

sandbox/misc.py

+2
Original file line numberDiff line numberDiff line change
@@ -80,3 +80,5 @@
8080
time.sleep(1)
8181
end = time.time()
8282
print(end - start)
83+
84+
print(1.0/2)

0 commit comments

Comments
 (0)