tensorflow::ops::FakeQuantWithMinMaxVarsGradient
#include <array_ops.h>คำนวณค่าเกรเดียนต์สำหรับการดำเนินการ FakeQuantWithMinMaxVars
สรุป
ข้อโต้แย้ง:
- ขอบเขต: วัตถุ ขอบเขต
- gradients: ค่า gradients ที่ส่งย้อนกลับขึ้นไปเหนือการดำเนินการ FakeQuantWithMinMaxVars
- อินพุต: ค่าที่ส่งผ่านเป็นอินพุตไปยังการดำเนินการ FakeQuantWithMinMaxVars min, max: ช่วงการควอนไทเซชัน, ค่าทศนิยมแบบสเกลาร์
คุณลักษณะเสริม (ดูที่ Attrs ):
- num_bits: ความกว้างของบิตในการควอนไทเซชัน อยู่ระหว่าง 2 ถึง 8 รวมทั้งสองค่า
- narrow_range: กำหนดว่าจะทำการควอนไทซ์เป็นค่าที่แตกต่างกัน 2^num_bits - 1 ค่าหรือไม่
การส่งคืนสินค้า:
-
Outputbackprops_wrt_input: ค่าความชันที่ส่งผ่านย้อนกลับเทียบกับอินพุต:gradients * (inputs >= min && inputs <= max) -
Outputbackprop_wrt_min: ค่าความชันที่ส่งกลับตามพารามิเตอร์ min:sum(gradients * (inputs < min)) -
Outputbackprop_wrt_max: ค่าความชันที่ส่งกลับตามพารามิเตอร์ max:sum(gradients * (inputs > max))
ตัวสร้างและตัวทำลาย | |
|---|---|
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) |
คุณลักษณะสาธารณะ | |
|---|---|
backprop_wrt_max | |
backprop_wrt_min | |
backprops_wrt_input | |
operation | |
ฟังก์ชันคงที่สาธารณะ | |
|---|---|
NarrowRange (bool x) | |
NumBits (int64 x) | |
โครงสร้าง | |
|---|---|
| tensorflow::ops::FakeQuantWithMinMaxVarsGradient::Attrs | ตัวเลือกการตั้งค่าแอตทริบิวต์สำหรับ FakeQuantWithMinMaxVarsGradient |
คุณลักษณะสาธารณะ
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
หน้าที่สาธารณะ
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 )
ฟังก์ชันคงที่สาธารณะ
ช่วงแคบ
Attrs NarrowRange( bool x )
นัมบิตส์
Attrs NumBits( int64 x )