텐서플로우:: 연산:: 랜덤셔플

#include <random_ops.h>

텐서의 첫 번째 차원을 따라 무작위로 섞습니다.

요약

텐서는 0차원을 따라 섞여서 각 value[j] 오직 하나의 output[i] 에만 매핑됩니다. 예를 들어, 3x2 텐서의 경우 다음과 같은 매핑이 발생할 수 있습니다.

[[1, 2],       [[5, 6],
 [3, 4],  ==>   [1, 2],
 [5, 6]]        [3, 4]]

논거:

  • 범위: Scope 객체
  • 값: 섞을 텐서입니다.

선택적 속성( Attrs 참조):

  • seed: seed 또는 seed2 하나라도 0이 아닌 값으로 설정되면, 지정된 시드를 사용하여 난수 생성기를 초기화합니다. 그렇지 않으면 임의의 시드를 사용합니다.
  • seed2: 시드 충돌을 방지하기 위한 두 번째 시드입니다.

보고:

  • Output : value 과 동일한 모양과 유형의 텐서이며, 첫 번째 차원을 따라 무작위로 섞여 있습니다.

생성자와 소멸자

RandomShuffle (const :: tensorflow::Scope & scope, :: tensorflow::Input value)
RandomShuffle (const :: tensorflow::Scope & scope, :: tensorflow::Input value, const RandomShuffle::Attrs & attrs)

공개 속성

operation
output

공공 기능

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

공개 정적 함수

Seed (int64 x)
Seed2 (int64 x)

구조

텐서플로우:: 연산:: 랜덤셔플:: 속성

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

공개 속성

작업

Operation operation

산출

::tensorflow::Output output

공공 기능

랜덤셔플

 RandomShuffle(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input value
)

랜덤셔플

 RandomShuffle(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input value,
  const RandomShuffle::Attrs & attrs
)

마디

::tensorflow::Node * node() const 

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

 operator::tensorflow::Input() const 

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

 operator::tensorflow::Output() const 

공개 정적 함수

씨앗

Attrs Seed(
  int64 x
)

시드2

Attrs Seed2(
  int64 x
)