fix: gpuoptions empty

This commit is contained in:
jialin
2025-04-24 16:11:04 +08:00
parent f7168cc814
commit 518a593c2a
+3
View File
@@ -230,6 +230,9 @@ export const useGenerateModelFileOptions = () => {
// handle for ascend npu only
export const checkOnlyAscendNPU = (gpuOptions: any[]) => {
if (!gpuOptions?.length) {
return false;
}
return gpuOptions?.every?.((item) => {
return item.children?.every((child: any) => {
return _.toLower(child.vendor) === 'huawei';