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

Function Recv

tensorflow/core/graph/testlib.cc:49–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47}
48
49Node* Recv(Graph* g, const string& tensor, const string& type,
50 const string& sender, const uint64 sender_incarnation,
51 const string& receiver) {
52 Node* ret;
53 DataType dtype;
54 CHECK(DataTypeFromString(type, &dtype));
55 TF_CHECK_OK(NodeBuilder(g->NewName("n"), "_Recv")
56 .Attr("tensor_type", dtype)
57 .Attr("tensor_name", tensor)
58 .Attr("send_device", sender)
59 .Attr("send_device_incarnation",
60 static_cast<int64>(sender_incarnation))
61 .Attr("recv_device", receiver)
62 .Finalize(g, &ret));
63 return ret;
64}
65
66Node* Constant(Graph* g, const Tensor& tensor) {
67 Node* ret;

Callers 1

RecvMethod · 0.50

Calls 5

DataTypeFromStringFunction · 0.85
NodeBuilderClass · 0.70
FinalizeMethod · 0.45
AttrMethod · 0.45
NewNameMethod · 0.45

Tested by

no test coverage detected