tensorflow :: ops :: Bincount
#include <math_ops.h>
정수 배열에서 각 값의 발생 횟수를 계산합니다.
요약
길이 size
및 weights
와 동일한 dtype을 가진 벡터를 출력합니다. weights
가 비어 있으면 인덱스 i
는 값 i
가 arr
계산 된 횟수를 저장합니다. weights
가 비어 있지 않으면 인덱스 i
는 arr
의 해당 값이 i
각 인덱스의 weights
합계를 저장합니다.
범위 [0, 크기)를 벗어난 arr
값은 무시됩니다.
인수 :
- 범위 : 범위 개체
- arr : int32
Tensor
. - 크기 : 음이 아닌 int32 스칼라
Tensor
. - weights :
arr
과 같은 모양을 가진 int32, int64, float32 또는 float64Tensor
또는 length-0Tensor
이며,이 경우 모든 가중치가 1로 작동합니다.
보고:
생성자와 소멸자 | |
---|---|
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
연산자 :: tensorflow :: 입력
operator::tensorflow::Input() const
연산자 :: tensorflow :: 출력
operator::tensorflow::Output() const