tensorflow::ops::UnravelIndex

#include <array_ops.h>

Converts a flat index or array of flat indices into a tuple of.

Summary

coordinate arrays.

(numpy) Equivalent to np.unravel_index

Arguments:

  • scope: A Scope object
  • indices: An 0-D or 1-D intTensor whose elements are indices into the flattened version of an array of dimensions dims.
  • dims: An 1-D intTensor. The shape of the array to use for unraveling indices.

Returns:

  • Output: An 2-D (or 1-D if indices is 0-D) tensor where each row has the same shape as the indices array.

Constructors and Destructors

UnravelIndex(const ::tensorflow::Scope & scope, ::tensorflow::Input indices, ::tensorflow::Input dims)

Public attributes

operation
output

Public functions

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

Public attributes

operation

Operation operation

output

::tensorflow::Output output

Public functions

UnravelIndex

 UnravelIndex(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input indices,
  ::tensorflow::Input dims
)

node

::tensorflow::Node * node() const 

operator::tensorflow::Input

 operator::tensorflow::Input() const 

operator::tensorflow::Output

 operator::tensorflow::Output() const