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

Method Reset

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

Static method.

Source from the content-addressed store, hash-verified

403
404// Static method.
405Status GrpcSession::Reset(const SessionOptions& options,
406 const std::vector<string>& containers) {
407 SharedGrpcChannelPtr master_channel;
408 TF_RETURN_IF_ERROR(
409 NewHostPortGrpcChannel(options.target.substr(kSchemePrefixLength),
410 /*rpc_options=*/nullptr, &master_channel));
411 auto master = NewGrpcMaster(master_channel);
412 ResetRequest req;
413 for (const auto& c : containers) req.add_container(c);
414 ResetResponse resp;
415 CallOptions call_options;
416 call_options.SetTimeout(options.config.operation_timeout_in_ms());
417 Status ret = master->Reset(&call_options, &req, &resp);
418 delete master;
419 return ret;
420}
421
422Status GrpcSession::MakeCallable(const CallableOptions& callable_options,
423 CallableHandle* out_handle) {

Callers 1

ResetHandlerMethod · 0.45

Calls 3

NewHostPortGrpcChannelFunction · 0.85
NewGrpcMasterFunction · 0.85
SetTimeoutMethod · 0.80

Tested by

no test coverage detected