Forwards the value of an available tensor from `inputs` to `output`. `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 to become available to `output`, and sets `value_index`
(scope *Scope, inputs []tf.Output)
| 25062 | // |
| 25063 | // Returns Will be set to the available input tensor.The index of the chosen input tensor in `inputs`. |
| 25064 | func Merge(scope *Scope, inputs []tf.Output) (output tf.Output, value_index tf.Output) { |
| 25065 | if scope.Err() != nil { |
| 25066 | return |
| 25067 | } |
| 25068 | opspec := tf.OpSpec{ |
| 25069 | Type: "Merge", |
| 25070 | Input: []tf.Input{ |
| 25071 | tf.OutputList(inputs), |
| 25072 | }, |
| 25073 | } |
| 25074 | op := scope.AddOperation(opspec) |
| 25075 | return op.Output(0), op.Output(1) |
| 25076 | } |
| 25077 | |
| 25078 | // Reduces sparse updates into the variable referenced by `resource` using the `max` operation. |
| 25079 | // |
no test coverage detected