@Namespace(value="tensorflow::ops") @NoOffset @Properties(inherit=tensorflow.class) public class 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 |
ScatterAdd.Attrs
Optional attribute setters for ScatterAdd
|
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
ScatterAdd(Pointer p)
Pointer cast constructor.
|
ScatterAdd(Scope scope,
Input ref,
Input indices,
Input updates) |
ScatterAdd(Scope scope,
Input ref,
Input indices,
Input updates,
ScatterAdd.Attrs attrs) |
Modifier and Type | Method and Description |
---|---|
Input |
asInput() |
Output |
asOutput() |
Node |
node() |
Operation |
operation() |
ScatterAdd |
operation(Operation setter) |
Output |
output_ref() |
ScatterAdd |
output_ref(Output setter) |
static ScatterAdd.Attrs |
UseLocking(boolean x) |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public ScatterAdd(Pointer p)
Pointer(Pointer)
.public ScatterAdd(@Const @ByRef Scope scope, @ByVal Input ref, @ByVal Input indices, @ByVal Input updates)
public Node node()
@ByVal public static ScatterAdd.Attrs UseLocking(@Cast(value="bool") boolean x)
public ScatterAdd operation(Operation setter)
public ScatterAdd output_ref(Output setter)
Copyright © 2022. All rights reserved.