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

tensorflow :: ops :: HistogramFixedWidth

#include <math_ops.h>

값의 히스토그램을 반환합니다.

요약

텐서 values 이 주어지면이 연산은 모든 빈에 속하는 values 의 항목 수를 계산하는 순위 1 히스토그램을 반환합니다. bin은 너비가 같고 value_rangenbins 인수에 의해 결정됩니다.

# Bins will be:  (-inf, 1), [1, 2), [2, 3), [3, 4), [4, inf)
nbins = 5
value_range = [0.0, 5.0]
new_values = [-1.0, 0.0, 1.5, 2.0, 5.0, 15]

with tf.get_default_session() as sess:
  hist = tf.histogram_fixed_width(new_values, value_range, nbins=5)
  variables.global_variables_initializer().run()
  sess.run(hist) => [2, 1, 1, 0, 2]

인수 :

  • 범위 : 범위 개체
  • 값 : 숫자 Tensor .
  • value_range : Shape [2] values 과 동일한 dtype Tensor . <= value_range [0] 값은 hist [0]에 매핑되고> = value_range [1] 값은 hist [-1]에 매핑됩니다.
  • nbins : 스칼라 int32 Tensor . 히스토그램 빈의 수.

보고:

  • Output : 값의 히스토그램을 보유하는 1D Tensor .

생성자와 소멸자

HistogramFixedWidth (const :: tensorflow::Scope & scope, :: tensorflow::Input values, :: tensorflow::Input value_range, :: tensorflow::Input nbins)
HistogramFixedWidth (const :: tensorflow::Scope & scope, :: tensorflow::Input values, :: tensorflow::Input value_range, :: tensorflow::Input nbins, const HistogramFixedWidth::Attrs & attrs)

공용 속성

operation
out

공공 기능

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

공개 정적 함수

Dtype (DataType x)

구조체

tensorflow :: ops :: HistogramFixedWidth :: Attrs

HistogramFixedWidth에 대한 선택적 속성 setter입니다.

공용 속성

조작

Operation operation

::tensorflow::Output out

공공 기능

HistogramFixedWidth

 HistogramFixedWidth(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input values,
  ::tensorflow::Input value_range,
  ::tensorflow::Input nbins
)

HistogramFixedWidth

 HistogramFixedWidth(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input values,
  ::tensorflow::Input value_range,
  ::tensorflow::Input nbins,
  const HistogramFixedWidth::Attrs & attrs
)

마디

::tensorflow::Node * node() const 

연산자 :: tensorflow :: 입력

 operator::tensorflow::Input() const 

연산자 :: tensorflow :: 출력

 operator::tensorflow::Output() const 

공개 정적 함수

D 타입

Attrs Dtype(
  DataType x
)