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 or int64, must be in the range [-rank(input), rank(input)) . Describes which dimension of the input Tensor to reduce across. For vectors, use 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

выход

::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
)

узел

::tensorflow::Node * node() const 

оператор::tensorflow::Input

 operator::tensorflow::Input() const 

оператор::tensorflow::Output

 operator::tensorflow::Output() const 

Открытые статические функции

Тип выходных данных

Attrs OutputType(
  DataType x
)