| 242 | } |
| 243 | |
| 244 | void StarWorkerService::FuseRecvTensorHandlerRaw(StarServerTag *tag) { |
| 245 | // LOG(INFO) << "StarWorkerService::FuseRecvTensorHandlerRaw"; |
| 246 | Schedule([this, tag]() { |
| 247 | CallOptions* call_opts = new CallOptions; |
| 248 | |
| 249 | StarCall<FuseRecvTensorRequest, StarFuseTensorResponse> *call = |
| 250 | new StarCall<FuseRecvTensorRequest, StarFuseTensorResponse>(); |
| 251 | |
| 252 | InitStarServerTag(&call->req_, &call->resp_, tag, [call] (const Status& s) {delete call;}); |
| 253 | |
| 254 | worker_->FuseRecvTensorAsync(call_opts, &call->req_, &call->resp_, |
| 255 | [tag, call, call_opts |
| 256 | ](const Status& s) { |
| 257 | delete call_opts; |
| 258 | tag->ProcessDone(s); |
| 259 | }); |
| 260 | }); |
| 261 | } |
| 262 | |
| 263 | void StarWorkerService::Schedule(std::function<void()> f) { |
| 264 | worker_->env()->compute_pool->Schedule(std::move(f)); |
nothing calls this directly
no test coverage detected