tensorflow::ops::ArgMin
#include <math_ops.h>
Возвращает индекс с наименьшим значением по всем измерениям тензора.
Краткое описание
Обратите внимание, что в случае совпадений идентификатор возвращаемого значения не гарантируется.
Использование:
import tensorflow as tf a = [1, 10, 26.9, 2.8, 166.32, 62.3] b = tf.math.argmin(input = a) c = tf.keras.backend.eval(b) # c = 0 # here a[0] = 1 which is the smallest element of a across axis 0
Аргументы:
- scope: Объект Scope
- dimension: int32 или int64, должно быть в диапазоне
[-rank(input), rank(input)). Описывает, по какому измерению входного тензора производить уменьшение. Для векторов используйте dimension = 0.
Возвращаемое значение:
-
Output: Результирующий тензор.
| Конструкторы и деструкторы | |
|---|---|
ArgMin(const ::tensorflow::Scope & scope, ::tensorflow::Input input, ::tensorflow::Input dimension) | |
ArgMin(const ::tensorflow::Scope & scope, ::tensorflow::Input input, ::tensorflow::Input dimension, const ArgMin::Attrs & attrs) |
| Общедоступные атрибуты | |
|---|---|
operation | |
output | |
| Общедоступные функции | |
|---|---|
node() const | ::tensorflow::Node * |
operator::tensorflow::Input() const | |
operator::tensorflow::Output() const | |
| Общедоступные статические функции | |
|---|---|
OutputType(DataType x) | |
| Структуры | |
|---|---|
| tensorflow::ops::ArgMin::Attrs | Необязательные установки атрибутов для ArgMin. |
Общедоступные атрибуты
operation
Operation operation
output
::tensorflow::Output output
Общедоступные функции
ArgMin
ArgMin( const ::tensorflow::Scope & scope, ::tensorflow::Input input, ::tensorflow::Input dimension )
ArgMin
ArgMin( const ::tensorflow::Scope & scope, ::tensorflow::Input input, ::tensorflow::Input dimension, const ArgMin::Attrs & attrs )
node
::tensorflow::Node * node() const
operator::tensorflow::Input
operator::tensorflow::Input() const
operator::tensorflow::Output
operator::tensorflow::Output() const
Общедоступные статические функции
OutputType
Attrs OutputType( DataType x )
© 2022 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 4.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r2.9/api_docs/cc/class/tensorflow/ops/arg-min