Google I/O에 참여해 주셔서 감사합니다. 주문형 모든 세션 보기 주문형 시청

tensorflow :: ops :: InvertPermutation

#include <array_ops.h>

텐서의 역 순열을 계산합니다.

요약

이 연산은 인덱스 순열의 역을 계산합니다. 0부터 시작하는 배열의 인덱스를 나타내는 1 차원 정수 텐서 x 사용하고 각 값을 인덱스 위치로 바꿉니다. 즉, 출력 텐서 y 및 입력 텐서 x 의 경우이 연산은 다음을 계산합니다.

y[x[i]] = i for i in [0, 1, ..., len(x) - 1]

값은 0을 포함해야합니다. 중복 값이나 음수 값은 허용되지 않습니다.

예를 들면 :

# tensor `x` is [3, 4, 0, 2, 1]
invert_permutation(x) ==> [2, 4, 3, 0, 1]

인수 :

  • 범위 : 범위 개체
  • x : 1-D.

보고:

생성자와 소멸자

InvertPermutation (const :: tensorflow::Scope & scope, :: tensorflow::Input x)

공용 속성

operation
y

공공 기능

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

공용 속성

조작

Operation operation

와이

::tensorflow::Output y

공공 기능

InvertPermutation

 InvertPermutation(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input x
)

마디

::tensorflow::Node * node() const 

연산자 :: tensorflow :: 입력

 operator::tensorflow::Input() const 

연산자 :: tensorflow :: 출력

 operator::tensorflow::Output() const