dòng chảy căng:: ôi:: Biểu đồCố địnhChiều rộng
#include <math_ops.h>Trả về biểu đồ của các giá trị.
Bản tóm tắt
 Với values tensor, thao tác này trả về biểu đồ xếp hạng 1 đếm số mục trong values rơi vào mỗi thùng. Các thùng có chiều rộng bằng nhau và được xác định bởi các đối số value_range và 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]
Lập luận:
- phạm vi: Một đối tượng Phạm vi
-  các giá trị: Tensorsố .
-  value_range: Hình dạng [2] Tensorcó cùngdtypevớivalues. các giá trị <= value_range[0] sẽ được ánh xạ tới hist[0], các giá trị >= value_range[1] sẽ được ánh xạ tới hist[-1].
-  nbins: int32 Tensorvô hướng . Số lượng thùng biểu đồ.
Trả về:
| Hàm tạo và hàm hủy | |
|---|---|
| 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) | 
| Thuộc tính công khai | |
|---|---|
| operation | |
| out | |
| Chức năng công cộng | |
|---|---|
| node () const | ::tensorflow::Node * | 
| operator::tensorflow::Input () const | |
| operator::tensorflow::Output () const | |
| Các hàm tĩnh công khai | |
|---|---|
| Dtype (DataType x) | |
| Cấu trúc | |
|---|---|
| tensorflow:: ops:: HistogramFixedWidth:: Attrs | Trình thiết lập thuộc tính tùy chọn cho HistogramFixedWidth . | 
Thuộc tính công khai
hoạt động
Operation operation
ngoài
::tensorflow::Output out
Chức năng công cộng
Biểu đồCố địnhChiều rộng
HistogramFixedWidth( const ::tensorflow::Scope & scope, ::tensorflow::Input values, ::tensorflow::Input value_range, ::tensorflow::Input nbins )
Biểu đồCố địnhChiều rộng
HistogramFixedWidth( const ::tensorflow::Scope & scope, ::tensorflow::Input values, ::tensorflow::Input value_range, ::tensorflow::Input nbins, const HistogramFixedWidth::Attrs & attrs )
nút
::tensorflow::Node * node() const
toán tử::tenorflow::Đầu vào
operator::tensorflow::Input() const
toán tử::tenorflow::Đầu ra
operator::tensorflow::Output() const
Các hàm tĩnh công khai
loại D
Attrs Dtype( DataType x )