tf.contrib.framework.sort(
values,
axis=-1,
direction='ASCENDING',
name=None
)
Defined in tensorflow/contrib/framework/python/ops/sort_ops.py.
Sorts a tensor.
values: 1-D or higher numeric Tensor.axis: The axis along which to sort. The default is -1, which sorts the last axis.direction: The direction in which to sort the values ('ASCENDING' or 'DESCENDING').name: Optional name for the operation.A Tensor with the same dtype and shape as values, with the elements sorted along the given axis.
ValueError: If axis is not a constant scalar, or the direction is invalid.
© 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/python/tf/contrib/framework/sort