텐서플로우:: ops:: 히스토그램 고정 폭

#include <math_ops.h>

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

요약

주어진 텐서 values 사용하여, 이 연산은 각 빈에 속하는 values 의 항목 수를 세는 랭크 1 히스토그램을 반환합니다. 빈은 동일한 너비를 가지며, value_range 및 nbins 인수에 의해 결정됩니다.

# 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]

논거:

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

보고:

  • Output : 값의 히스토그램을 담고 있는 1차원 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)

구조

텐서플로우:: ops:: 히스토그램 고정 폭:: 속성

HistogramFixedWidth 에 대한 선택적 속성 설정기입니다.

공개 속성

작업

Operation operation

밖으로

::tensorflow::Output out

공공 기능

히스토그램 고정 너비

 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
)

마디

::tensorflow::Node * node() const 

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

 operator::tensorflow::Input() const 

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

 operator::tensorflow::Output() const 

공개 정적 함수

디타입

Attrs Dtype(
  DataType x
)