fix: gpus empty
This commit is contained in:
@@ -234,6 +234,9 @@ export const checkOnlyAscendNPU = (gpuOptions: any[]) => {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return gpuOptions?.every?.((item) => {
|
return gpuOptions?.every?.((item) => {
|
||||||
|
if (!item.children?.length) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
return item.children?.every((child: any) => {
|
return item.children?.every((child: any) => {
|
||||||
return _.toLower(child.vendor) === 'huawei';
|
return _.toLower(child.vendor) === 'huawei';
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user