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

#include <math_ops.h>

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

요약

길이 sizeweights 와 동일한 dtype을 가진 벡터를 출력합니다. weights 비어 있으면 인덱스 ii arr 에 계산되는 횟수를 저장합니다. weights 비어 있지 않으면 인덱스 iarr 의 해당 값이 i 인 각 인덱스의 weights 값의 합을 저장합니다.

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

인수:

  • 범위: 범위 개체
  • 입력: 1D 또는 2D int Tensor .
  • 크기: 음수가 아닌 정수 스칼라 Tensor .
  • Weights: arr 과 모양이 동일한 int32, arr , float32 또는 float64 Tensor 이거나 길이가 0인 Tensor 입니다. 이 경우 모든 가중치가 1인 것처럼 작동합니다.

선택적 속성( Attrs 참조):

  • 바이너리 출력: 부울; 커널이 출현 횟수 또는 발생 횟수를 계산해야 하는지 여부입니다.

보고:

  • Output : 길이가 size 와 같은 1D Tensor 또는 [batch_size, size ]의 2D Tensor . [0, 크기) 범위에 있는 각 값의 개수 또는 합산된 가중치입니다.

생성자와 소멸자

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)

구조체

tensorflow:: ops:: DenseBincount:: 속성

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

공개 속성

작업

Operation operation

산출

::tensorflow::Output output

공공 기능

DenseBincount

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

DenseBincount

 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
)