mirror of
https://github.com/vale981/ray
synced 2025-03-06 02:21:39 -05:00
Issue 9631: Tf1.14 does not have tf.config.list_physical_devices. (#9681)
This commit is contained in:
parent
a078a21437
commit
e4c5d3526f
1 changed files with 1 additions and 1 deletions
|
@ -412,7 +412,7 @@ class RolloutWorker(ParallelIteratorWorker):
|
|||
worker_index) +
|
||||
" on CPU (please ignore any CUDA init errors)")
|
||||
elif (policy_config["framework"] in ["tf2", "tf", "tfe"] and
|
||||
not tf.config.list_physical_devices("GPU")) or \
|
||||
not tf.config.experimental.list_physical_devices("GPU")) or \
|
||||
(policy_config["framework"] == "torch" and
|
||||
not torch.cuda.is_available()):
|
||||
raise RuntimeError(
|
||||
|
|
Loading…
Add table
Reference in a new issue