diff --git a/mediapipe/tasks/cc/core/task_api_factory.h b/mediapipe/tasks/cc/core/task_api_factory.h index a11a23fcfd..dbb5fe6cac 100644 --- a/mediapipe/tasks/cc/core/task_api_factory.h +++ b/mediapipe/tasks/cc/core/task_api_factory.h @@ -76,15 +76,17 @@ class TaskApiFactory { found_task_subgraph = true; } } +#if !MEDIAPIPE_DISABLE_GPU MP_ASSIGN_OR_RETURN( auto runner, -#if !MEDIAPIPE_DISABLE_GPU core::TaskRunner::Create(std::move(graph_config), std::move(resolver), std::move(packets_callback), std::move(default_executor), std::move(input_side_packets), /*resources=*/nullptr, std::move(error_fn))); #else + MP_ASSIGN_OR_RETURN( + auto runner, core::TaskRunner::Create( std::move(graph_config), std::move(resolver), std::move(packets_callback), std::move(default_executor),