tensorflow::ops::FakeQuantWithMinMaxVarsPerChannelGradient
#include <array_ops.h>Tính toán đạo hàm cho thao tác FakeQuantWithMinMaxVarsPerChannel .
Bản tóm tắt
Luận điểm:
- phạm vi: Một đối tượng Phạm vi
- gradient: Gradient lan truyền ngược phía trên phép toán FakeQuantWithMinMaxVars , hình dạng là một trong các hình dạng sau:
[d],[b, d],[b, h, w, d]. - inputs: Các giá trị được truyền làm đầu vào cho phép toán FakeQuantWithMinMaxVars , hình dạng giống như
gradients. min, max: Khoảng lượng tử hóa, số thực có hình dạng[d].
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 16, 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, hình dạng giống nhưinputs:gradients * (inputs >= min && inputs <= max). -
Outputbackprop_wrt_min: Độ dốc lan truyền ngược theo tham số min, hình dạng[d]:sum_per_d(gradients * (inputs < min)). -
Outputbackprop_wrt_max: Độ dốc lan truyền ngược theo tham số max, hình dạng[d]:sum_per_d(gradients * (inputs > max)).
Hàm khởi 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 | |
|---|---|
| tensorflow::ops::FakeQuantWithMinMaxVarsPerChannelGradient::Attrs | Các thiết lập 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 )