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

Function DynamicStitch

tensorflow/go/op/wrappers.go:7672–7684  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

7670// <img style="width:100%" src="https://www.tensorflow.org/images/DynamicStitch.png" alt>
7671// </div>
7672func 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.
7687type MultiDeviceIteratorFromStringHandleAttr func(optionalAttr)

Callers 4

TEST_FFunction · 0.85
DynamicPartitionGradFunction · 0.85
TEST_FFunction · 0.85
ReducedShapeHelperFunction · 0.85

Calls 3

ErrMethod · 0.45
AddOperationMethod · 0.45
OutputMethod · 0.45

Tested by 2

TEST_FFunction · 0.68
TEST_FFunction · 0.68