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)
| 1133 | // Returns A `Tensor` with the same shape as `input`, containing values of `input` |
| 1134 | // updated with `updates`. |
| 1135 | func 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. |
| 1150 | type ListDiffAttr func(optionalAttr) |