Google I/O에 참여해 주셔서 감사합니다. 주문형 모든 세션 보기 주문형 시청

tensorflow :: ops :: 버킷 화

#include <math_ops.h>

'경계'를 기반으로 '입력'을 버킷 화합니다.

요약

예를 들어 입력이 경계인 경우 = [0, 10, 100] 입력 = [[-5, 10000] [150, 10] [5, 100]]

그러면 출력이 출력됩니다 = [[0, 3] [3, 2] [1, 3]]

인수 :

  • 범위 : 범위 개체
  • 입력 : Tensor의 모든 모양에는 int 또는 float 유형이 포함됩니다.
  • 경계 : 정렬 된 수레 목록은 버킷의 경계를 제공합니다.

보고:

  • Output : '입력'과 동일한 모양, 각 입력 값은 버킷 인덱스로 대체됩니다.

(numpy) np.digitize와 같습니다.

생성자와 소멸자

Bucketize (const :: tensorflow::Scope & scope, :: tensorflow::Input input, const gtl::ArraySlice< float > & boundaries)

공용 속성

operation
output

공공 기능

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

공용 속성

조작

Operation operation

산출

::tensorflow::Output output

공공 기능

버킷 화

 Bucketize(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input input,
  const gtl::ArraySlice< float > & boundaries
)

마디

::tensorflow::Node * node() const 

연산자 :: tensorflow :: 입력

 operator::tensorflow::Input() const 

연산자 :: tensorflow :: 출력

 operator::tensorflow::Output() const