เทนเซอร์โฟลว์:: ปฏิบัติการ:: ฮิสโตแกรมความกว้างคงที่
#include <math_ops.h>ส่งกลับฮิสโตแกรมของค่า
สรุป
 เมื่อพิจารณา values เทนเซอร์ การดำเนินการนี้จะส่งคืนฮิสโตแกรมอันดับ 1 โดยนับจำนวนรายการใน values ที่อยู่ในทุกถังขยะ ถังขยะมีความกว้างเท่ากันและกำหนดโดยอาร์กิวเมนต์ 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]
ข้อโต้แย้ง:
- ขอบเขต: วัตถุ ขอบเขต
-  ค่า: Tensorตัวเลข
-  value_range: รูปร่าง [2] Tensorของdtypeเดียวกันกับvaluesค่า <= value_range[0] จะถูกแมปกับ hist[0] ค่า >= value_range[1] จะถูกแมปกับ hist[-1]
-  nbins: สเกลาร์ int32 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 :: Attrs | ตัวตั้งค่าแอ็ตทริบิวต์ทางเลือกสำหรับ 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
ตัวดำเนินการ::tensorflow::อินพุต
operator::tensorflow::Input() const
ตัวดำเนินการ::tensorflow::เอาต์พุต
operator::tensorflow::Output() const
ฟังก์ชันคงที่สาธารณะ
ประเภทD
Attrs Dtype( DataType x )