텐서플로우:: ops:: DenseBincount

#include <math_ops.h>

정수 배열에서 각 값의 발생 횟수를 계산합니다.

요약

size 길이의 벡터를 출력하며, weights 와 동일한 데이터 타입을 갖습니다. weights 비어 있으면 인덱스 i 에는 arr 에서 해당 값 i 나타나는 횟수가 저장됩니다. weights 비어 있지 않으면 인덱스 ` i 에는 arr 에서 해당 값이 i 인 각 인덱스의 weights 값들의 합이 저장됩니다.

arr 의 값이 [0, size) 범위를 벗어나면 무시됩니다.

논거:

  • 범위: Scope 객체
  • 입력: 1차원 또는 2차원 Tensor .
  • 크기: 음수가 아닌 정수 스칼라 Tensor .
  • weights: arr 과 동일한 형태의 int32, int64, float32 또는 float64 Tensor 이거나, 길이가 0인 Tensor입니다. 길이가 0인 Tensor 의 경우 모든 가중치가 1인 것처럼 동작합니다.

선택적 속성( Attrs 참조):

  • binary_output: bool; 커널이 출현 횟수를 셀지, 아니면 발생 횟수를 셀지 여부.

보고:

  • Output : size 와 길이가 같은 1차원 Tensor 또는 [batch_size, size ] 길이의 2차원 Tensor . [0, size) 범위의 각 값에 대한 카운트 또는 합산 가중치.

생성자와 소멸자

DenseBincount (const :: tensorflow::Scope & scope, :: tensorflow::Input input, :: tensorflow::Input size, :: tensorflow::Input weights)
DenseBincount (const :: tensorflow::Scope & scope, :: tensorflow::Input input, :: tensorflow::Input size, :: tensorflow::Input weights, const DenseBincount::Attrs & attrs)

공개 속성

operation
output

공공 기능

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

공개 정적 함수

BinaryOutput (bool x)

구조

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

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

공개 속성

작업

Operation operation

산출

::tensorflow::Output output

공공 기능

덴스빈카운트

 DenseBincount(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input input,
  ::tensorflow::Input size,
  ::tensorflow::Input weights
)

덴스빈카운트

 DenseBincount(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input input,
  ::tensorflow::Input size,
  ::tensorflow::Input weights,
  const DenseBincount::Attrs & attrs
)

마디

::tensorflow::Node * node() const 

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

 operator::tensorflow::Input() const 

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

 operator::tensorflow::Output() const 

공개 정적 함수

이진 출력

Attrs BinaryOutput(
  bool x
)