@Namespace(value="tensorflow::ops") @NoOffset public static class tensorflow.GatherV2 extends Pointer
params axis axis according to indices.
indices must be an integer tensor of any dimension (usually 0-D or 1-D).
Produces an output tensor with shape params.shape[:axis] + indices.shape +
params.shape[axis + 1:] where:
python
# Scalar indices (output is rank(params) - 1).
output[a_0, ..., a_n, b_0, ..., b_n] =
params[a_0, ..., a_n, indices, b_0, ..., b_n]
# Vector indices (output is rank(params)).
output[a_0, ..., a_n, i, b_0, ..., b_n] =
params[a_0, ..., a_n, indices[i], b_0, ..., b_n]
# Higher rank indices (output is rank(params) + rank(indices) - 1).
output[a_0, ..., a_n, i, ..., j, b_0, ... b_n] =
params[a_0, ..., a_n, indices[i, ..., j], b_0, ..., b_n]
tf.batch_gather and tf.gather_nd.
Arguments:
* scope: A Scope object
* params: The tensor from which to gather values. Must be at least rank
axis + 1.
* indices: Index tensor. Must be in range [0, params.shape[axis]).
* axis: The axis in params to gather indices from. Defaults to the first
dimension. Supports negative indexes.
Returns:
* Output: Values from params gathered from indices given by indices, with
shape params.shape[:axis] + indices.shape + params.shape[axis + 1:].Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator| Constructor and Description |
|---|
GatherV2(Pointer p)
Pointer cast constructor.
|
GatherV2(tensorflow.Scope scope,
tensorflow.Input params,
tensorflow.Input indices,
tensorflow.Input axis) |
| Modifier and Type | Method and Description |
|---|---|
tensorflow.Input |
asInput() |
tensorflow.Output |
asOutput() |
tensorflow.Node |
node() |
tensorflow.Operation |
operation() |
tensorflow.GatherV2 |
operation(tensorflow.Operation operation) |
tensorflow.Output |
output() |
tensorflow.GatherV2 |
output(tensorflow.Output output) |
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 GatherV2(Pointer p)
Pointer.Pointer(Pointer).public GatherV2(@Const @ByRef tensorflow.Scope scope, @ByVal tensorflow.Input params, @ByVal tensorflow.Input indices, @ByVal tensorflow.Input axis)
@ByVal @Name(value="operator tensorflow::Output") public tensorflow.Output asOutput()
@ByVal @Name(value="operator tensorflow::Input") public tensorflow.Input asInput()
public tensorflow.Node node()
@ByRef public tensorflow.Operation operation()
public tensorflow.GatherV2 operation(tensorflow.Operation operation)
@ByRef public tensorflow.Output output()
public tensorflow.GatherV2 output(tensorflow.Output output)
Copyright © 2019. All rights reserved.