tensorflow::ops::Gather

#include <array_ops.h>

Gather slices from params according to indices.

Summary

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:

 # 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.

Args:

Returns:

Constructors and Destructors

Gather(const ::tensorflow::Scope & scope, ::tensorflow::Input params, ::tensorflow::Input indices)
Gather(const ::tensorflow::Scope & scope, ::tensorflow::Input params, ::tensorflow::Input indices, const Gather::Attrs & attrs)

Public attributes

operation
output

Public functions

node() const
::tensorflow::Node *
operator::tensorflow::Input() const
operator::tensorflow::Output() const

Public static functions

ValidateIndices(bool x)

Structs

tensorflow::ops::Gather::Attrs

Optional attribute setters for Gather.

Public attributes

operation

Operation operation

output

::tensorflow::Output output

Public functions

Gather

 Gather(  const ::tensorflow::Scope & scope,  ::tensorflow::Input params,  ::tensorflow::Input indices )

Gather

 Gather(  const ::tensorflow::Scope & scope,  ::tensorflow::Input params,  ::tensorflow::Input indices,  const Gather::Attrs & attrs )

node

::tensorflow::Node * node() const 

operator::tensorflow::Input

 operator::tensorflow::Input() const 

operator::tensorflow::Output

 operator::tensorflow::Output() const 

Public static functions

ValidateIndices

Attrs ValidateIndices( bool x )