24
24
#include < vector>
25
25
26
26
#include " ../execution_context.hpp"
27
+ #include " ../logging.hpp"
27
28
#include " ../model_metric_reporter.hpp"
28
29
#include " ../profiler.hpp"
29
30
#include " ../status.hpp"
@@ -109,13 +110,17 @@ class MediapipeGraphExecutor {
109
110
MetricCounterGuard failedRequestsGuard (this ->mediapipeServableMetricReporter ->getRequestsMetric (executionContext, false ));
110
111
MetricGaugeGuard currentGraphsGuard (this ->mediapipeServableMetricReporter ->currentGraphs .get ());
111
112
::mediapipe::CalculatorGraph graph;
113
+ SPDLOG_ERROR (" SetExecutor XXX" );
114
+ std::ignore = graph.SetExecutor (" " , sharedThreadPool); // TODO FIXME
115
+ SPDLOG_ERROR (" Start unary KServe request mediapipe graph: {} initializationXXXbegin" , this ->name );
112
116
MP_RETURN_ON_FAIL (graph.Initialize (this ->config ), std::string (" failed initialization of MediaPipe graph: " ) + this ->name , StatusCode::MEDIAPIPE_GRAPH_INITIALIZATION_ERROR);
113
117
enum : unsigned int {
114
118
PROCESS,
115
119
TIMER_END2
116
120
};
117
121
Timer<TIMER_END2> timer;
118
122
timer.start (PROCESS);
123
+ SPDLOG_ERROR (" Start unary KServe request mediapipe graph: {} initializationXXXend" , this ->name );
119
124
std::unordered_map<std::string, ::mediapipe::OutputStreamPoller> outputPollers;
120
125
for (auto & name : this ->outputNames ) {
121
126
if (name.empty ()) {
@@ -136,7 +141,9 @@ class MediapipeGraphExecutor {
136
141
inputSidePackets[PYTHON_SESSION_SIDE_PACKET_TAG] = mediapipe::MakePacket<PythonNodeResourcesMap>(this ->pythonNodeResourcesMap ).At (STARTING_TIMESTAMP);
137
142
inputSidePackets[LLM_SESSION_SIDE_PACKET_TAG] = mediapipe::MakePacket<GenAiServableMap>(this ->llmNodeResourcesMap ).At (STARTING_TIMESTAMP);
138
143
#endif
144
+ SPDLOG_ERROR (" Start unary KServe request mediapipe graph: {} startRunXXXbegin" , this ->name );
139
145
MP_RETURN_ON_FAIL (graph.StartRun (inputSidePackets), std::string (" start MediaPipe graph: " ) + this ->name , StatusCode::MEDIAPIPE_GRAPH_START_ERROR);
146
+ SPDLOG_ERROR (" Start unary KServe request mediapipe graph: {} startRunXXXend" , this ->name );
140
147
141
148
::mediapipe::Packet packet;
142
149
std::set<std::string> outputPollersWithReceivedPacket;
@@ -231,7 +238,9 @@ class MediapipeGraphExecutor {
231
238
{
232
239
OVMS_PROFILE_SCOPE (" Mediapipe graph initialization" );
233
240
// Init
241
+ SPDLOG_DEBUG (" Start unary KServe request mediapipe graph: {} initializationXXX" , this ->name );
234
242
MP_RETURN_ON_FAIL (graph.Initialize (this ->config ), " graph initialization" , StatusCode::MEDIAPIPE_GRAPH_INITIALIZATION_ERROR);
243
+ SPDLOG_DEBUG (" Start unary KServe request mediapipe graph: {} initializationXXX ended" , this ->name );
235
244
}
236
245
enum : unsigned int {
237
246
PROCESS,
0 commit comments