@Namespace(value="tensorflow::ops") @NoOffset public static class tensorflow.ScatterAdd extends Pointer
ref after the update is done.
This makes it easier to chain operations that need to use the reset value.
Duplicate entries are handled correctly: if multiple indices reference
the same location, their contributions add.
Requires updates.shape = indices.shape + ref.shape[1:] or updates.shape = [].
Variable node.
* indices: A tensor of indices into the first dimension of ref.
* updates: A tensor of updated values to add to ref.
Optional attributes (see Attrs):
* use_locking: If True, the addition will be protected by a lock;
otherwise the behavior is undefined, but may exhibit less contention.
Returns:
* Output: = Same as ref. Returned as a convenience for operations that want
to use the updated values after the update is done.| Modifier and Type | Class and Description |
|---|---|
static class |
tensorflow.ScatterAdd.Attrs
Optional attribute setters for ScatterAdd
|
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator| Constructor and Description |
|---|
ScatterAdd(Pointer p)
Pointer cast constructor.
|
ScatterAdd(tensorflow.Scope scope,
tensorflow.Input ref,
tensorflow.Input indices,
tensorflow.Input updates) |
ScatterAdd(tensorflow.Scope scope,
tensorflow.Input ref,
tensorflow.Input indices,
tensorflow.Input updates,
tensorflow.ScatterAdd.Attrs attrs) |
| Modifier and Type | Method and Description |
|---|---|
tensorflow.Input |
asInput() |
tensorflow.Output |
asOutput() |
tensorflow.Node |
node() |
tensorflow.Operation |
operation() |
tensorflow.ScatterAdd |
operation(tensorflow.Operation operation) |
tensorflow.Output |
output_ref() |
tensorflow.ScatterAdd |
output_ref(tensorflow.Output output_ref) |
static tensorflow.ScatterAdd.Attrs |
UseLocking(boolean x) |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, hashCode, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, parseBytes, physicalBytes, position, position, put, realloc, setNull, sizeof, toString, totalBytes, totalPhysicalBytes, withDeallocator, zeropublic ScatterAdd(Pointer p)
Pointer.Pointer(Pointer).public ScatterAdd(@Const @ByRef tensorflow.Scope scope, @ByVal tensorflow.Input ref, @ByVal tensorflow.Input indices, @ByVal tensorflow.Input updates)
public ScatterAdd(@Const @ByRef tensorflow.Scope scope, @ByVal tensorflow.Input ref, @ByVal tensorflow.Input indices, @ByVal tensorflow.Input updates, @Const @ByRef tensorflow.ScatterAdd.Attrs attrs)
@ByVal @Name(value="operator tensorflow::Output") public tensorflow.Output asOutput()
@ByVal @Name(value="operator tensorflow::Input") public tensorflow.Input asInput()
public tensorflow.Node node()
@ByVal public static tensorflow.ScatterAdd.Attrs UseLocking(@Cast(value="bool") boolean x)
@ByRef public tensorflow.Operation operation()
public tensorflow.ScatterAdd operation(tensorflow.Operation operation)
@ByRef public tensorflow.Output output_ref()
public tensorflow.ScatterAdd output_ref(tensorflow.Output output_ref)
Copyright © 2019. All rights reserved.