W3cubDocs

/TensorFlow C++

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
output
Public functions
node() const
::tensorflow::Node *
operator::tensorflow::Input() const
operator::tensorflow::Output() const

Public attributes

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 

© 2018 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/cc/class/tensorflow/ops/unravel-index.html