dòng chảy căng:: ôi:: FakeQuantWithMinMaxVarsPerChannelGradient
#include <array_ops.h>Tính toán độ dốc cho hoạt động FakeQuantWithMinMaxVarsPerChannel .
Bản tóm tắt
Lập luận:
- phạm vi: Một đối tượng Phạm vi
- độ dốc: Độ dốc được truyền ngược phía trên hoạt động FakeQuantWithMinMaxVars , định hình một trong:
[d],[b, d],[b, h, w, d]. - đầu vào: Các giá trị được chuyển làm đầu vào cho hoạt động FakeQuantWithMinMaxVars , có hình dạng giống như
gradients. min, max: Khoảng lượng tử hóa, hình nổi[d].
Thuộc tính tùy chọn (xem Attrs ):
- num_bits: Độ rộng bit của lượng tử hóa; từ 2 đến 16, bao gồm.
- phạm vi hẹp: Có định lượng thành 2^num_bits hay không - 1 giá trị riêng biệt.
Trả về:
- Backprops_wrt_input
Output: Các đầu vào có độ dốc được lan truyền ngược, có hình dạng giống nhưinputs:gradients * (inputs >= min && inputs <= max). -
Outputbackprop_wrt_min: Tham số gradient được lan truyền ngược wrt min, hình dạng[d]:sum_per_d(gradients * (inputs < min)). -
Outputbackprop_wrt_max: Tham số tối đa của gradient được lan truyền ngược, hình dạng[d]:sum_per_d(gradients * (inputs > max)).
Hàm tạo và hàm hủy | |
|---|---|
FakeQuantWithMinMaxVarsPerChannelGradient (const :: tensorflow::Scope & scope, :: tensorflow::Input gradients, :: tensorflow::Input inputs, :: tensorflow::Input min, :: tensorflow::Input max) | |
FakeQuantWithMinMaxVarsPerChannelGradient (const :: tensorflow::Scope & scope, :: tensorflow::Input gradients, :: tensorflow::Input inputs, :: tensorflow::Input min, :: tensorflow::Input max, const FakeQuantWithMinMaxVarsPerChannelGradient::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 | |
|---|---|
| tenorflow:: ops:: FakeQuantWithMinMaxVarsPerChannelGradient:: Attrs | Bộ cài đặt thuộc tính tùy chọn cho FakeQuantWithMinMaxVarsPerChannelGradient . |
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
FakeQuantWithMinMaxVarsPerChannelGradient
FakeQuantWithMinMaxVarsPerChannelGradient( const ::tensorflow::Scope & scope, ::tensorflow::Input gradients, ::tensorflow::Input inputs, ::tensorflow::Input min, ::tensorflow::Input max )
FakeQuantWithMinMaxVarsPerChannelGradient
FakeQuantWithMinMaxVarsPerChannelGradient( const ::tensorflow::Scope & scope, ::tensorflow::Input gradients, ::tensorflow::Input inputs, ::tensorflow::Input min, ::tensorflow::Input max, const FakeQuantWithMinMaxVarsPerChannelGradient::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 )