@Namespace(value="tensorflow::ops") @NoOffset public static class tensorflow.Gather extends Pointer
params according to indices.
indices must be an integer tensor of any dimension (usually 0-D or 1-D).
Produces an output tensor with shape indices.shape + params.shape[1:] where:
python
# Scalar indices
output[:, ..., :] = params[indices, :, ... :]
# Vector indices
output[i, :, ..., :] = params[indices[i], :, ... :]
# Higher rank indices
output[i, ..., j, :, ... :] = params[indices[i, ..., j], :, ..., :]
If indices is a permutation and len(indices) == params.shape[0] then
this operation will permute params accordingly.
validate_indices: DEPRECATED. If this operation is assigned to CPU, values in
indices are always validated to be within range. If assigned to GPU,
out-of-bound indices result in safe but unspecified behavior, which may include
raising an error.
Output: The output tensor.| Modifier and Type | Class and Description |
|---|---|
static class |
tensorflow.Gather.Attrs
Optional attribute setters for Gather
|
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator| Constructor and Description |
|---|
Gather(Pointer p)
Pointer cast constructor.
|
Gather(tensorflow.Scope scope,
tensorflow.Input params,
tensorflow.Input indices) |
Gather(tensorflow.Scope scope,
tensorflow.Input params,
tensorflow.Input indices,
tensorflow.Gather.Attrs attrs) |
| Modifier and Type | Method and Description |
|---|---|
tensorflow.Input |
asInput() |
tensorflow.Output |
asOutput() |
tensorflow.Node |
node() |
tensorflow.Operation |
operation() |
tensorflow.Gather |
operation(tensorflow.Operation operation) |
tensorflow.Output |
output() |
tensorflow.Gather |
output(tensorflow.Output output) |
static tensorflow.Gather.Attrs |
ValidateIndices(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 Gather(Pointer p)
Pointer.Pointer(Pointer).public Gather(@Const @ByRef tensorflow.Scope scope, @ByVal tensorflow.Input params, @ByVal tensorflow.Input indices)
public Gather(@Const @ByRef tensorflow.Scope scope, @ByVal tensorflow.Input params, @ByVal tensorflow.Input indices, @Const @ByRef tensorflow.Gather.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.Gather.Attrs ValidateIndices(@Cast(value="bool") boolean x)
@ByRef public tensorflow.Operation operation()
public tensorflow.Gather operation(tensorflow.Operation operation)
@ByRef public tensorflow.Output output()
public tensorflow.Gather output(tensorflow.Output output)
Copyright © 2019. All rights reserved.