from tensorflow.python.framework import op_def_registry as _op_def_registry

  result = _op_def_lib.apply_op(
      "XlaRecv",
      dtype=dtype,
      shape=shape,
      tensor_name=tensor_name,
      name=name if name else "XlaRecv")
  return result


def _InitOpDefLibrary():
  op_list = _op_def_pb2.OpList()
  _text_format.Merge(_InitOpDefLibrary.op_list_ascii, op_list)
  _op_def_registry.register_op_list(op_list)
  op_def_lib = _op_def_library.OpDefLibrary()
  op_def_lib.add_op_list(op_list)
  return op_def_lib


_InitOpDefLibrary.op_list_ascii = """op {
  name: "_Recv"
  output_arg {
    name: "tensor"
    type_attr: "tensor_type"
  }
