텐서플로우:: 작전:: ArgMax

#include <math_ops.h>

텐서의 차원 전체에서 가장 큰 값을 가진 인덱스를 반환합니다.

요약

동점인 경우 반환 값의 동일성은 보장되지 않습니다.

사용법:

  import tensorflow as tf
  a = [1, 10, 26.9, 2.8, 166.32, 62.3]
  b = tf.math.argmax(input = a)
  c = tf.keras.backend.eval(b)
  # c = 4
  # here a[4] = 166.32 which is the largest element of a across axis 0
  

인수:

  • 범위: 범위 개체
  • 차원: int32 또는 int64, [-rank(input), rank(input)) 범위에 있어야 합니다. 축소할 입력 텐서 의 차원을 설명합니다. 벡터의 경우 차원 = 0을 사용합니다.

보고:

생성자와 소멸자

ArgMax (const :: tensorflow::Scope & scope, :: tensorflow::Input input, :: tensorflow::Input dimension)
ArgMax (const :: tensorflow::Scope & scope, :: tensorflow::Input input, :: tensorflow::Input dimension, const ArgMax::Attrs & attrs)

공개 속성

operation
output

공공 기능

node () const
::tensorflow::Node *
operator::tensorflow::Input () const
operator::tensorflow::Output () const

공개 정적 함수

OutputType (DataType x)

구조체

텐서플로우:: ops:: ArgMax:: Attrs

ArgMax 에 대한 선택적 속성 설정자입니다.

공개 속성

작업

Operation operation

산출

::tensorflow::Output output

공공 기능

ArgMax

 ArgMax(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input input,
  ::tensorflow::Input dimension
)

ArgMax

 ArgMax(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input input,
  ::tensorflow::Input dimension,
  const ArgMax::Attrs & attrs
)

마디

::tensorflow::Node * node() const 

연산자::텐서플로우::입력

 operator::tensorflow::Input() const 

연산자::텐서플로우::출력

 operator::tensorflow::Output() const 

공개 정적 함수

출력 유형

Attrs OutputType(
  DataType x
)