dòng chảy :: hoạt động :: FakeQuantWithMinMaxVarsGradient
#include <array_ops.h>
Tính toán độ dốc cho hoạt động FakeQuantWithMinMaxVars .
Tóm lược
Tranh luận:
- phạm vi: Một đối tượng Phạm vi
- gradient: Gradient được đánh dấu ngược phía trên thao tác FakeQuantWithMinMaxVars .
- đầu vào: Giá trị được chuyển làm đầu vào cho hoạt động FakeQuantWithMinMaxVars . min, max: Khoảng lượng tử hóa, số lượng nổi vô hướng.
Các thuộc tính tùy chọn (xem Phần Attrs
):
- num_bits: Độ rộng bit của lượng tử hóa; từ 2 đến 8, bao gồm.
- phạm vi hẹp: Có lượng tử hóa thành 2 ^ num_bits - 1 giá trị riêng biệt hay không.
Lợi nhuận:
-
Output
backprops_wrt_input: Đầu vào gradient được gắn thẻ ngược dòng wrt:gradients * (inputs >= min && inputs <= max)
. -
Output
backprop_wrt_min: Backpropagated gradient wrt min tham số:sum(gradients * (inputs < min))
. -
Output
backprop_wrt_max: Gradient được đánh dấu ngược wrt tham số max:sum(gradients * (inputs > max))
.
Người xây dựng và Người phá 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 chức năng tĩnh công khai | |
---|---|
NarrowRange (bool x) | |
NumBits (int64 x) |
Cấu trúc | |
---|---|
tensorflow :: ops :: FakeQuantWithMinMaxVarsGradient :: Attrs | Bộ 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 chức năng tĩnh công khai
Phạm vi hẹp
Attrs NarrowRange( bool x )
NumBits
Attrs NumBits( int64 x )