Interleave the values from the `data` tensors into a single tensor. Builds a merged tensor such that ```python merged[indices[m][i, ..., j], ...] = data[m][i, ..., j, ...] ``` For example, if each `indices[m]` is scalar or vector, we have ```python # Scalar indices: merged[indices[m], ...] = dat
(scope *Scope, indices []tf.Output, data []tf.Output)
| 7670 | // <img style="width:100%" src="https://www.tensorflow.org/images/DynamicStitch.png" alt> |
| 7671 | // </div> |
| 7672 | func DynamicStitch(scope *Scope, indices []tf.Output, data []tf.Output) (merged tf.Output) { |
| 7673 | if scope.Err() != nil { |
| 7674 | return |
| 7675 | } |
| 7676 | opspec := tf.OpSpec{ |
| 7677 | Type: "DynamicStitch", |
| 7678 | Input: []tf.Input{ |
| 7679 | tf.OutputList(indices), tf.OutputList(data), |
| 7680 | }, |
| 7681 | } |
| 7682 | op := scope.AddOperation(opspec) |
| 7683 | return op.Output(0) |
| 7684 | } |
| 7685 | |
| 7686 | // MultiDeviceIteratorFromStringHandleAttr is an optional argument to MultiDeviceIteratorFromStringHandle. |
| 7687 | type MultiDeviceIteratorFromStringHandleAttr func(optionalAttr) |