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

#include <math_ops.h>

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

요약

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

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

인수:

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

보고:

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

생성자와 소멸자

Bincount (const :: tensorflow::Scope & scope, :: tensorflow::Input arr, :: tensorflow::Input size, :: tensorflow::Input weights)

공개 속성

bins
operation

공공 기능

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

공개 속성

쓰레기통

::tensorflow::Output bins

작업

Operation operation

공공 기능

Bincount

 Bincount(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input arr,
  ::tensorflow::Input size,
  ::tensorflow::Input weights
)

마디

::tensorflow::Node * node() const 

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

 operator::tensorflow::Input() const 

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

 operator::tensorflow::Output() const