aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/core/api_def/base_api/api_def_RefMerge.pbtxt
blob: cc7ad303c5812daa8119516b151cea4a37e21d77 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
op {
  graph_op_name: "RefMerge"
  visibility: HIDDEN
  in_arg {
    name: "inputs"
    description: <<END
The input tensors, exactly one of which will become available.
END
  }
  out_arg {
    name: "output"
    description: <<END
Will be set to the available input tensor.
END
  }
  out_arg {
    name: "value_index"
    description: <<END
The index of the chosen input tensor in `inputs`.
END
  }
  summary: "Forwards the value of an available tensor from `inputs` to `output`."
  description: <<END
`Merge` waits for at least one of the tensors in `inputs` to become available.
It is usually combined with `Switch` to implement branching.

`Merge` forwards the first tensor for become available to `output`, and sets
`value_index` to its index in `inputs`.
END
}