chore: mindle multiple support
This commit is contained in:
@@ -187,14 +187,12 @@ const AdvanceConfig: React.FC<AdvanceConfigProps> = (props) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const handleBeforeGpuSelectorChange = (gpuIds: any[]) => {
|
const handleBeforeGpuSelectorChange = (gpuIds: any[]) => {
|
||||||
if (backend !== backendOptionsMap.ascendMindie || !gpuIds?.length) {
|
// if (backend !== backendOptionsMap.ascendMindie || !gpuIds?.length) {
|
||||||
return;
|
// return;
|
||||||
}
|
// }
|
||||||
const lastGroupName = gpuIds[gpuIds.length - 1][0];
|
// const lastGroupName = gpuIds[gpuIds.length - 1][0];
|
||||||
|
// const lastGroupItems = gpuIds.filter((item) => item[0] === lastGroupName);
|
||||||
const lastGroupItems = gpuIds.filter((item) => item[0] === lastGroupName);
|
// form.setFieldValue(['gpu_selector', 'gpu_ids'], lastGroupItems);
|
||||||
|
|
||||||
form.setFieldValue(['gpu_selector', 'gpu_ids'], lastGroupItems);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const handleGpuSelectorChange = (value: any[]) => {
|
const handleGpuSelectorChange = (value: any[]) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user