Skip to content

Commit

Permalink
fix device requests when not selecting any gpu
Browse files Browse the repository at this point in the history
  • Loading branch information
migraf committed Nov 15, 2022
1 parent 9c6ee93 commit b2906e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion airflow/dags/DAG_PHT_run_train.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ def execute_container(train_state):
network_disabled=True,
stderr=True,
stdout=True,
device_requests=[device_request]
device_requests=[device_request] if device_request else []
)
# If the container is already in use remove it
except APIError as e:
Expand Down

0 comments on commit b2906e9

Please sign in to comment.