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

Method add_send

tensorflow/core/distributed_runtime/message_wrappers.cc:556–563  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

554}
555
556void MutableProtoRunGraphRequest::add_send(const string& key,
557 const Tensor& tensor) {
558 NamedTensorProto* send = request_.add_send();
559 send->set_name(key);
560 TensorProto proto;
561 tensor.AsProtoTensorContent(&proto);
562 *send->mutable_tensor() = proto;
563}
564
565ProtoRunGraphRequest::ProtoRunGraphRequest(const RunGraphRequest* request)
566 : request_(request) {}

Callers 5

ComputeAsyncMethod · 0.80
RunMethod · 0.80

Calls 2

AsProtoTensorContentMethod · 0.80
set_nameMethod · 0.45

Tested by

no test coverage detected