Skip to content

Commit

Permalink
Fix problem with device request not being list
Browse files Browse the repository at this point in the history
  • Loading branch information
PawelPeczek-Roboflow committed Dec 18, 2023
1 parent f6edb4a commit 0de3ce2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions inference_cli/lib/container_adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@ def start_inference_container(
privileged = False
if "gpu" in image:
privileged = True
device_requests = (
[docker.types.DeviceRequest(device_ids=["all"], capabilities=[["gpu"]])],
)
device_requests = [
docker.types.DeviceRequest(device_ids=["all"], capabilities=[["gpu"]])
]

print(f"Starting inference server container...")
docker_client.containers.run(
Expand Down

0 comments on commit 0de3ce2

Please sign in to comment.