Spec-Zone.ru › TensorFlow C++ 1.15

tensorflow::ops::ArgMin

#include <math_ops.h>

Возвращает индекс с наименьшим значением по всем измерениям тензора.

Summary

Обратите внимание, что в случае совпадения значений идентификатор возвращаемого значения не гарантируется.

Использование:

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)). Описывает, по какому измерению входного Tensor следует производить сокращение. Для векторов используйте 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
Operation
output
::tensorflow::Output
Общедоступные функции
node() const
::tensorflow::Node *
operator::tensorflow::Input() const
operator::tensorflow::Output() const
Общедоступные статические функции
OutputType(DataType x)
Attrs
Структуры
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
)

© 2020 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/versions/r1.15/api_docs/cc/class/tensorflow/ops/arg-min

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API