Skip to content

Commit

Permalink
Fixed error:.\mediapipe/tasks/cc/core/task_api_factory.h(86): error C…
Browse files Browse the repository at this point in the history
…2121: “#”: invalid character: possibly the result of a macro expansion on Windows platform
  • Loading branch information
Tobe-Young committed May 20, 2024
1 parent 60f537b commit 6fc4181
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mediapipe/tasks/cc/core/task_api_factory.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,15 +76,18 @@ 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),
Expand Down

0 comments on commit 6fc4181

Please sign in to comment.