MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / MakeCallable

Method MakeCallable

tensorflow/core/distributed_runtime/rpc/grpc_session.cc:422–434  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

420}
421
422Status GrpcSession::MakeCallable(const CallableOptions& callable_options,
423 CallableHandle* out_handle) {
424 MakeCallableRequest req;
425 TF_RETURN_IF_ERROR(Handle(req.mutable_session_handle()));
426 *req.mutable_options() = callable_options;
427 req.set_request_id(GetUniqueRequestId());
428 MakeCallableResponse resp;
429 CallOptions call_options;
430 call_options.SetTimeout(options_.config.operation_timeout_in_ms());
431 TF_RETURN_IF_ERROR(master_->MakeCallable(&call_options, &req, &resp));
432 *out_handle = resp.handle();
433 return Status::OK();
434}
435
436Status GrpcSession::RunCallable(CallableHandle handle,
437 const std::vector<Tensor>& feed_tensors,

Callers 2

TESTFunction · 0.45
MakeCallableHandlerMethod · 0.45

Calls 6

GetUniqueRequestIdFunction · 0.85
mutable_optionsMethod · 0.80
set_request_idMethod · 0.80
SetTimeoutMethod · 0.80
HandleClass · 0.50
handleMethod · 0.45

Tested by 1

TESTFunction · 0.36