From b9c7850ce4fec50129a35b8549e7e9e26b6b407a Mon Sep 17 00:00:00 2001 From: Nick Doiron Date: Thu, 14 Dec 2023 10:55:15 -0600 Subject: [PATCH] slots per trial can be 0 --- webui/react/src/components/HyperparameterSearchModal.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webui/react/src/components/HyperparameterSearchModal.tsx b/webui/react/src/components/HyperparameterSearchModal.tsx index 276e8b90fde8..8f0afa45848a 100644 --- a/webui/react/src/components/HyperparameterSearchModal.tsx +++ b/webui/react/src/components/HyperparameterSearchModal.tsx @@ -487,7 +487,7 @@ const HyperparameterSearchModal = ({ closeModal, experiment, trial }: Props): JS initialValue={experiment.configRaw?.resources?.slots_per_trial || 1} label="Slots per trial" name="slots_per_trial" - rules={[{ max: maxSlots, min: 1, required: true, type: 'number' }]} + rules={[{ max: maxSlots, min: 0, required: true, type: 'number' }]} validateStatus={ formValues?.slots_per_trial > maxSlots || formValues?.slots_per_trial < 1 ? 'error'