เทนเซอร์โฟลว์ :: ops :: FakeQuantWithMinMaxVarsPerChannelGradient
#include <array_ops.h>
คำนวณการไล่ระดับสีสำหรับการดำเนินการ FakeQuantWithMinMaxVarsPerChannel
สรุป
อาร์กิวเมนต์:
- ขอบเขต: วัตถุ ขอบเขต
- การไล่ระดับสี: การไล่ระดับสีแบบ Backpropagated เหนือการดำเนินการ FakeQuantWithMinMaxVars รูปร่างหนึ่งของ:
[d]
,[b, d]
,[b, h, w, d]
- อินพุต: ค่าที่ส่งผ่านเป็นอินพุตไปยังการดำเนินการ FakeQuantWithMinMaxVars ซึ่งมีรูปร่างเหมือนกับการ
gradients
ขั้นต่ำสูงสุด: ช่วงควอนไทเซชันการลอยตัวของรูปร่าง[d]
แอตทริบิวต์เสริม (ดู Attrs
):
- num_bits: bitwidth ของ quantization; ระหว่าง 2 ถึง 16 รวม
- narrow_range: กำหนดจำนวนเป็น 2 ^ num_bits - 1 ค่าที่แตกต่างกันหรือไม่
ผลตอบแทน:
-
Output
backprops_wrt_input: Backpropagated gradients wrt อินพุตรูปร่างเหมือนกับinputs
:gradients * (inputs >= min && inputs <= max)
-
Output
backprop_wrt_min: Backpropagated gradients wrt min พารามิเตอร์ shape[d]
:sum_per_d(gradients * (inputs < min))
-
Output
backprop_wrt_max: Backpropagated gradients wrt max พารามิเตอร์ shape[d]
:sum_per_d(gradients * (inputs > max))
ผู้สร้างและผู้ทำลาย | |
---|---|
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) |
คุณลักษณะสาธารณะ | |
---|---|
backprop_wrt_max | |
backprop_wrt_min | |
backprops_wrt_input | |
operation |
ฟังก์ชั่นคงที่สาธารณะ | |
---|---|
NarrowRange (bool x) | |
NumBits (int64 x) |
โครงสร้าง | |
---|---|
tensorflow :: ops :: FakeQuantWithMinMaxVarsPerChannelGradient :: Attrs | ตัวตั้งค่าแอตทริบิวต์เสริมสำหรับ FakeQuantWithMinMaxVarsPerChannelGradient |
คุณลักษณะสาธารณะ
backprop_wrt_max
::tensorflow::Output backprop_wrt_max
backprop_wrt_min
::tensorflow::Output backprop_wrt_min
backprops_wrt_input
::tensorflow::Output backprops_wrt_input
การดำเนินการ
Operation operation
หน้าที่สาธารณะ
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 )
ฟังก์ชั่นคงที่สาธารณะ
ช่วงแคบ ๆ
Attrs NarrowRange( bool x )
NumBits
Attrs NumBits( int64 x )