Added exception for GPUDelegate

This commit is contained in:
Prianka Liz Kariat 2023-01-05 19:32:35 +05:30
parent febc4fd283
commit 5484d09341

View File

@ -32,9 +32,10 @@ using BaseOptionsProto = ::mediapipe::tasks::core::proto::BaseOptions;
baseOptionsProto->mutable_acceleration()->mutable_tflite(); baseOptionsProto->mutable_acceleration()->mutable_tflite();
break; break;
} }
case MPPDelegateGPU: case MPPDelegateGPU: {
// TODO: Provide an implementation for GPU Delegate. // TODO: Provide an implementation for GPU Delegate.
break; [NSException raise:@"Invalid value for delegate" format:@"GPU Delegate is not implemented."];
}
default: default:
break; break;
} }