@Namespace(value="tensorflow::ops") @NoOffset public static class tensorflow.ScatterUpdate extends Pointer
python
# Scalar indices
ref[indices, ...] = updates[...]
# Vector indices (for each i)
ref[indices[i], ...] = updates[i, ...]
# High rank indices (for each i, ..., j)
ref[indices[i, ..., j], ...] = updates[i, ..., j, ...]
This operation outputs ref after the update is done.
This makes it easier to chain operations that need to use the reset value.
If values in ref is to be updated more than once, because there are
duplicate entries in indices, the order at which the updates happen
for each value is undefined.
Requires updates.shape = indices.shape + ref.shape[1:] or updates.shape = [].
tf.batch_scatter_update and tf.scatter_nd_update.
Arguments:
* scope: A Scope object
* ref: Should be from a Variable node.
* indices: A tensor of indices into the first dimension of ref.
* updates: A tensor of updated values to store in ref.
Optional attributes (see Attrs):
* use_locking: If True, the assignment 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.ScatterUpdate.Attrs
Optional attribute setters for ScatterUpdate
|
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator| Constructor and Description |
|---|
ScatterUpdate(Pointer p)
Pointer cast constructor.
|
ScatterUpdate(tensorflow.Scope scope,
tensorflow.Input ref,
tensorflow.Input indices,
tensorflow.Input updates) |
ScatterUpdate(tensorflow.Scope scope,
tensorflow.Input ref,
tensorflow.Input indices,
tensorflow.Input updates,
tensorflow.ScatterUpdate.Attrs attrs) |
| Modifier and Type | Method and Description |
|---|---|
tensorflow.Input |
asInput() |
tensorflow.Output |
asOutput() |
tensorflow.Node |
node() |
tensorflow.Operation |
operation() |
tensorflow.ScatterUpdate |
operation(tensorflow.Operation operation) |
tensorflow.Output |
output_ref() |
tensorflow.ScatterUpdate |
output_ref(tensorflow.Output output_ref) |
static tensorflow.ScatterUpdate.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 ScatterUpdate(Pointer p)
Pointer.Pointer(Pointer).public ScatterUpdate(@Const @ByRef tensorflow.Scope scope, @ByVal tensorflow.Input ref, @ByVal tensorflow.Input indices, @ByVal tensorflow.Input updates)
public ScatterUpdate(@Const @ByRef tensorflow.Scope scope, @ByVal tensorflow.Input ref, @ByVal tensorflow.Input indices, @ByVal tensorflow.Input updates, @Const @ByRef tensorflow.ScatterUpdate.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.ScatterUpdate.Attrs UseLocking(@Cast(value="bool") boolean x)
@ByRef public tensorflow.Operation operation()
public tensorflow.ScatterUpdate operation(tensorflow.Operation operation)
@ByRef public tensorflow.Output output_ref()
public tensorflow.ScatterUpdate output_ref(tensorflow.Output output_ref)
Copyright © 2019. All rights reserved.