텐서플로우:: ops:: NthElement

#include <nn_ops.h>

마지막 차원에 대한 n 번째 순서 통계량 값을 찾습니다.

요약

입력이 벡터(랭크-1)인 경우, 벡터에서 n번째로 작은 값을 갖는 요소들을 찾아 그 값들을 스칼라 텐서로 출력합니다.

행렬(또는 고차원 입력)의 경우, 각 행(또는 마지막 차원을 따라 있는 벡터)에서 n번째로 작은 값을 계산합니다. 따라서,

values.shape = input.shape[:-1]

논거:

  • 범위: Scope 객체
  • 입력: 마지막 차원이 최소 n+1 이상인 1차원 이상.
  • n: 0차원. 마지막 차원(행렬의 경우 각 행)을 따라 선택할 정렬된 벡터의 위치입니다. n의 유효 범위는 [0, input.shape[:-1]) 입니다.

선택적 속성( Attrs 참조):

  • reverse: True로 설정하면 벡터에서 n번째로 큰 값을 찾고, 그렇지 않으면 그 반대의 경우를 찾습니다.

보고:

  • Output : 각 마지막 차원 슬라이스에 대한 n 번째 순서 통계량.

생성자와 소멸자

NthElement (const :: tensorflow::Scope & scope, :: tensorflow::Input input, :: tensorflow::Input n)
NthElement (const :: tensorflow::Scope & scope, :: tensorflow::Input input, :: tensorflow::Input n, const NthElement::Attrs & attrs)

공개 속성

operation
values

공공 기능

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

공개 정적 함수

Reverse (bool x)

구조

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

NthElement 에 대한 선택적 속성 설정기입니다.

공개 속성

작업

Operation operation

값

::tensorflow::Output values

공공 기능

NthElement

 NthElement(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input input,
  ::tensorflow::Input n
)

NthElement

 NthElement(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input input,
  ::tensorflow::Input n,
  const NthElement::Attrs & attrs
)

마디

::tensorflow::Node * node() const 

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

 operator::tensorflow::Input() const 

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

 operator::tensorflow::Output() const 

공개 정적 함수

뒤집다

Attrs Reverse(
  bool x
)