#include <array_ops.h>
Converts a flat index or array of flat indices into a tuple of.
coordinate arrays.
(numpy) Equivalent to np.unravel_index
Arguments:
int
Tensor whose elements are indices into the flattened version of an array of dimensions dims.int
Tensor. 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 |
::tensorflow::Output output
UnravelIndex( const ::tensorflow::Scope & scope, ::tensorflow::Input indices, ::tensorflow::Input dims )
::tensorflow::Node * node() const
operator::tensorflow::Input() const
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