From a7d82bc543f0330ca1825be2f8edf257019068ee Mon Sep 17 00:00:00 2001 From: Sergei Lebedev Date: Mon, 23 Sep 2019 23:44:33 -0700 Subject: [PATCH] Exported Send/Recv in tf.raw_ops This is done to streamline Channel implementation in Lingvo which currently relies on a mutable op_def_registry. PiperOrigin-RevId: 270841220 --- .../core/api_def/base_api/api_def_Recv.pbtxt | 44 +++++++++++++++++++ .../core/api_def/base_api/api_def_Send.pbtxt | 44 +++++++++++++++++++ tensorflow/core/kernels/sendrecv_ops.cc | 8 ++++ tensorflow/core/ops/sendrecv_ops.cc | 22 ++++++++++ tensorflow/python/BUILD | 8 ++++ tensorflow/python/__init__.py | 17 +++---- .../api/golden/v1/tensorflow.raw_ops.pbtxt | 8 ++++ .../api/golden/v2/tensorflow.raw_ops.pbtxt | 8 ++++ 8 files changed, 148 insertions(+), 11 deletions(-) create mode 100644 tensorflow/core/api_def/base_api/api_def_Recv.pbtxt create mode 100644 tensorflow/core/api_def/base_api/api_def_Send.pbtxt diff --git a/tensorflow/core/api_def/base_api/api_def_Recv.pbtxt b/tensorflow/core/api_def/base_api/api_def_Recv.pbtxt new file mode 100644 index 00000000000..8c2293ea269 --- /dev/null +++ b/tensorflow/core/api_def/base_api/api_def_Recv.pbtxt @@ -0,0 +1,44 @@ +op { + graph_op_name: "Recv" + visibility: HIDDEN + out_arg { + name: "tensor" + description: <