dòng chảy :: hoạt động :: FakeQuantWithMinMaxVarsPerChannelGradient

#include <array_ops.h>

Tính toán độ dốc cho hoạt động FakeQuantWithMinMaxVarsPerChannel .

Tóm lược

Tranh luận:

  • phạm vi: Một đối tượng Phạm vi
  • gradient: Gradient được đánh dấu ngược phía trên thao tác FakeQuantWithMinMaxVars , định hình một trong các: [d] , [b, d] , [b, h, w, d] .
  • đầu vào: Giá trị được chuyển làm đầu vào cho hoạt động FakeQuantWithMinMaxVars , có hình dạng giống như gradients . min, max: Khoảng lượng tử hóa, số lượng nổi của hình [d] .

Các thuộc tính tùy chọn (xem Phần Attrs ):

  • num_bits: Độ rộng bit của lượng tử hóa; từ 2 đến 16, bao gồm.
  • phạm vi hẹp: Có lượng tử hóa thành 2 ^ num_bits - 1 giá trị riêng biệt hay không.

Lợi nhuận:

  • Output backprops_wrt_input: Đầu vào wrt gradient được gắn thẻ ngược, hình dạng giống với inputs : gradients * (inputs >= min && inputs <= max) .
  • Output backprop_wrt_min: Backpropagated gradient wrt min tham số, shape [d] : sum_per_d(gradients * (inputs < min)) .
  • Output backprop_wrt_max: Backpropagated gradient wrt max tham số, shape [d] : sum_per_d(gradients * (inputs > max)) .

Người xây dựng và Người phá 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 cộng

backprop_wrt_max
backprop_wrt_min
backprops_wrt_input
operation

Các chức năng tĩnh công khai

NarrowRange (bool x)
NumBits (int64 x)

Cấu trúc

tensorflow :: ops :: FakeQuantWithMinMaxVarsPerChannelGradient :: Attrs

Bộ thiết lập thuộc tính tùy chọn cho FakeQuantWithMinMaxVarsPerChannelGradient .

Thuộc tính công cộng

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 chức năng tĩnh công khai

Phạm vi hẹp

Attrs NarrowRange(
  bool x
)

NumBits

Attrs NumBits(
  int64 x
)