tensorflow::ops::FakeQuantWithMinMaxVarsGradient
#include <array_ops.h>Tính toán đạo hàm cho thao tác FakeQuantWithMinMaxVars .
Bản tóm tắt
Luận điểm:
- phạm vi: Một đối tượng Phạm vi
- gradient: Độ dốc lan truyền ngược phía trên phép toán FakeQuantWithMinMaxVars .
- inputs: Các giá trị được truyền làm đầu vào cho thao tác FakeQuantWithMinMaxVars . min, max: Khoảng lượng tử hóa, số thực vô hướng.
Các thuộc tính tùy chọn (xem Attrs ):
- num_bits: Độ rộng bit của quá trình lượng tử hóa; nằm trong khoảng từ 2 đến 8, bao gồm cả hai giá trị này.
- narrow_range: Có lượng tử hóa thành 2^num_bits - 1 giá trị khác nhau hay không.
Trả về:
-
Outputbackprops_wrt_input: Độ dốc lan truyền ngược theo đầu vào:gradients * (inputs >= min && inputs <= max). -
Outputbackprop_wrt_min: Độ dốc lan truyền ngược theo tham số min:sum(gradients * (inputs < min)). -
Outputbackprop_wrt_max: Độ dốc lan truyền ngược theo tham số max:sum(gradients * (inputs > max)).
Hàm khởi tạo và hàm hủy | |
|---|---|
FakeQuantWithMinMaxVarsGradient (const :: tensorflow::Scope & scope, :: tensorflow::Input gradients, :: tensorflow::Input inputs, :: tensorflow::Input min, :: tensorflow::Input max) | |
FakeQuantWithMinMaxVarsGradient (const :: tensorflow::Scope & scope, :: tensorflow::Input gradients, :: tensorflow::Input inputs, :: tensorflow::Input min, :: tensorflow::Input max, const FakeQuantWithMinMaxVarsGradient::Attrs & attrs) |
Thuộc tính công khai | |
|---|---|
backprop_wrt_max | |
backprop_wrt_min | |
backprops_wrt_input | |
operation | |
Các hàm tĩnh công khai | |
|---|---|
NarrowRange (bool x) | |
NumBits (int64 x) | |
Cấu trúc | |
|---|---|
| tensorflow::ops::FakeQuantWithMinMaxVarsGradient::Attrs | Các thiết lập thuộc tính tùy chọn cho FakeQuantWithMinMaxVarsGradient . |
Thuộc tính công khai
backprop_wrt_max
::tensorflow::Output backprop_wrt_max
backprop_wrt_min
::tensorflow::Output backprop_wrt_min
backprops_wrt_input
::tensorflow::Output backprops_wrt_input
hoạt động
Operation operation
Chức năng công cộng
FakeQuantWithMinMaxVarsGradient
FakeQuantWithMinMaxVarsGradient( const ::tensorflow::Scope & scope, ::tensorflow::Input gradients, ::tensorflow::Input inputs, ::tensorflow::Input min, ::tensorflow::Input max )
FakeQuantWithMinMaxVarsGradient
FakeQuantWithMinMaxVarsGradient( const ::tensorflow::Scope & scope, ::tensorflow::Input gradients, ::tensorflow::Input inputs, ::tensorflow::Input min, ::tensorflow::Input max, const FakeQuantWithMinMaxVarsGradient::Attrs & attrs )
Các hàm tĩnh công khai
Phạm vi hẹp
Attrs NarrowRange( bool x )
NumBits
Attrs NumBits( int64 x )