@Namespace(value="tensorflow::ops") @NoOffset public static class tensorflow.ScatterSub 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.
Duplicate entries are handled correctly: if multiple indices reference
the same location, their (negated) 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 subtract from ref.
Optional attributes (see Attrs):
* use_locking: If True, the subtraction 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.ScatterSub.Attrs
Optional attribute setters for ScatterSub
|
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator| Constructor and Description |
|---|
ScatterSub(Pointer p)
Pointer cast constructor.
|
ScatterSub(tensorflow.Scope scope,
tensorflow.Input ref,
tensorflow.Input indices,
tensorflow.Input updates) |
ScatterSub(tensorflow.Scope scope,
tensorflow.Input ref,
tensorflow.Input indices,
tensorflow.Input updates,
tensorflow.ScatterSub.Attrs attrs) |
| Modifier and Type | Method and Description |
|---|---|
tensorflow.Input |
asInput() |
tensorflow.Output |
asOutput() |
tensorflow.Node |
node() |
tensorflow.Operation |
operation() |
tensorflow.ScatterSub |
operation(tensorflow.Operation operation) |
tensorflow.Output |
output_ref() |
tensorflow.ScatterSub |
output_ref(tensorflow.Output output_ref) |
static tensorflow.ScatterSub.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 ScatterSub(Pointer p)
Pointer.Pointer(Pointer).public ScatterSub(@Const @ByRef tensorflow.Scope scope, @ByVal tensorflow.Input ref, @ByVal tensorflow.Input indices, @ByVal tensorflow.Input updates)
public ScatterSub(@Const @ByRef tensorflow.Scope scope, @ByVal tensorflow.Input ref, @ByVal tensorflow.Input indices, @ByVal tensorflow.Input updates, @Const @ByRef tensorflow.ScatterSub.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.ScatterSub.Attrs UseLocking(@Cast(value="bool") boolean x)
@ByRef public tensorflow.Operation operation()
public tensorflow.ScatterSub operation(tensorflow.Operation operation)
@ByRef public tensorflow.Output output_ref()
public tensorflow.ScatterSub output_ref(tensorflow.Output output_ref)
Copyright © 2019. All rights reserved.