mirror of
https://github.com/wassname/ray.git
synced 2026-07-13 02:20:40 +08:00
Pass string into json.loads, not bytes object. (#991)
This commit is contained in:
committed by
Philipp Moritz
parent
6c31adf781
commit
2892955119
@@ -461,7 +461,7 @@ class Monitor(object):
|
||||
result = pipe.hget(local_scheduler_id,
|
||||
"gpus_in_use")
|
||||
gpus_in_use = (dict() if result is None else
|
||||
json.loads(result))
|
||||
json.loads(result.decode("ascii")))
|
||||
|
||||
driver_id_hex = binary_to_hex(driver_id)
|
||||
if driver_id_hex in gpus_in_use:
|
||||
|
||||
Reference in New Issue
Block a user