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

Function Merge

tensorflow/go/op/wrappers.go:25064–25076  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

25062//
25063// Returns Will be set to the available input tensor.The index of the chosen input tensor in `inputs`.
25064func 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//

Callers 1

InitFromGraphMethod · 0.50

Calls 3

ErrMethod · 0.45
AddOperationMethod · 0.45
OutputMethod · 0.45

Tested by

no test coverage detected