เทนเซอร์โฟลว์:: ปฏิบัติการ:: FakeQuantWithMinMaxVarsGradient

#include <array_ops.h>

คำนวณการไล่ระดับสีสำหรับการดำเนินการ FakeQuantWithMinMaxVars

สรุป

ข้อโต้แย้ง:

  • ขอบเขต: วัตถุ ขอบเขต
  • การไล่ระดับสี: การไล่ระดับสีแบบย้อนกลับเหนือการดำเนินการ FakeQuantWithMinMaxVars
  • อินพุต: ค่าที่ส่งเป็นอินพุตไปยังการดำเนินการ FakeQuantWithMinMaxVars ต่ำสุด สูงสุด: ช่วงการหาปริมาณ สเกลาร์ลอยตัว

แอ็ตทริบิวต์ทางเลือก (ดู Attrs ):

  • num_bits: บิตไวด์ของการหาปริมาณ; ระหว่าง 2 ถึง 8 รวม
  • ช่วงแคบ: กำหนดปริมาณเป็น 2^num_bits - 1 ค่าที่แตกต่างกัน

ผลตอบแทน:

  • Output backprops_wrt_input: การไล่ระดับสีแบบย้อนกลับ อินพุต wrt: gradients * (inputs >= min && inputs <= max)
  • Output backprop_wrt_min: การไล่ระดับสีแบบย้อนกลับ wrt พารามิเตอร์ min: sum(gradients * (inputs < min))
  • Output backprop_wrt_max: การไล่ระดับสีแบบย้อนกลับ wrt พารามิเตอร์สูงสุด: 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)

โครงสร้าง

เทนเซอร์โฟลว์ :: 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
)