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

Function ScatterNdNonAliasingAdd

tensorflow/go/op/wrappers.go:1135–1147  ·  view source on GitHub ↗

Applies sparse addition to `input` using individual values or slices from `updates` according to indices `indices`. The updates are non-aliasing: `input` is only modified in-place if no other operations will use it. Otherwise, a copy of `input` is made. This operation has a gradient with respect

(scope *Scope, input tf.Output, indices tf.Output, updates tf.Output)

Source from the content-addressed store, hash-verified

1133// Returns A `Tensor` with the same shape as `input`, containing values of `input`
1134// updated with `updates`.
1135func ScatterNdNonAliasingAdd(scope *Scope, input tf.Output, indices tf.Output, updates tf.Output) (output tf.Output) {
1136 if scope.Err() != nil {
1137 return
1138 }
1139 opspec := tf.OpSpec{
1140 Type: "ScatterNdNonAliasingAdd",
1141 Input: []tf.Input{
1142 input, indices, updates,
1143 },
1144 }
1145 op := scope.AddOperation(opspec)
1146 return op.Output(0)
1147}
1148
1149// ListDiffAttr is an optional argument to ListDiff.
1150type ListDiffAttr func(optionalAttr)

Callers 1

TEST_FFunction · 0.85

Calls 3

ErrMethod · 0.45
AddOperationMethod · 0.45
OutputMethod · 0.45

Tested by 1

TEST_FFunction · 0.68