tensorflow::ops::FakeQuantWithMinMaxVarsPerChannelGradient

#include <array_ops.h>

คำนวณค่าเกรเดียนต์สำหรับการดำเนินการ FakeQuantWithMinMaxVarsPerChannel

สรุป

ข้อโต้แย้ง:

  • ขอบเขต: วัตถุ ขอบเขต
  • gradients: ค่า gradients ที่ส่งย้อนกลับเหนือการดำเนินการ FakeQuantWithMinMaxVars โดยมีรูปร่างอย่างใดอย่างหนึ่งดังต่อไปนี้: [d] , [b, d] , [b, h, w, d]
  • อินพุต: ค่าที่ส่งผ่านเป็นอินพุตไปยังการดำเนินการ FakeQuantWithMinMaxVars โดยมีรูปร่างเหมือนกับ gradients min, max: ช่วงการควอนไทเซชัน เป็นค่าทศนิยมที่มีรูปร่าง [d]

คุณลักษณะเสริม (ดูที่ Attrs ):

  • num_bits: ความกว้างของบิตในการควอนไทเซชัน อยู่ระหว่าง 2 ถึง 16 รวมทั้งสองค่า
  • narrow_range: กำหนดว่าจะทำการควอนไทซ์เป็นค่าที่แตกต่างกัน 2^num_bits - 1 ค่าหรือไม่

การส่งคืนสินค้า:

  • Output backprops_wrt_input: Backpropagated gradients wrt inputs, shape same as inputs : gradients * (inputs >= min && inputs <= max) .
  • Output backprop_wrt_min: Backpropagated gradients wrt min parameter, shape [d] : sum_per_d(gradients * (inputs < min)) .
  • Output backprop_wrt_max: Backpropagated gradients wrt max parameter, 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
)

นัมบิตส์

Attrs NumBits(
  int64 x
)