Spec-Zone.ru › TensorFlow C++ 1.15

tensorflow::ops::FakeQuantWithMinMaxVarsPerChannelGradient

#include <array_ops.h>

Вычисление градиентов для операции FakeQuantWithMinMaxVarsPerChannel.

Краткое описание

Аргументы:

  • scope: Объект Scope
  • gradients: Градиенты обратного распространения выше операции FakeQuantWithMinMaxVars, форма одного из: [d], [b, d], [b, h, w, d].
  • inputs: Значения, переданные в качестве входных данных в операцию FakeQuantWithMinMaxVars, форма такая же, как у gradients. min, max: Интервал квантования, числа с плавающей точкой формы [d].

Необязательные атрибуты (см. Attrs):

  • num_bits: Разрядность квантования; от 2 до 16 включительно.
  • narrow_range: Признак квантования в 2^num_bits - 1 отдельных значениях.

Возвращаемое значение:

  • Output backprops_wrt_input: Градиенты обратного распространения по отношению к входным данным, форма такая же, как у inputs: gradients * (inputs >= min && inputs <= max).
  • Output backprop_wrt_min: Градиенты обратного распространения по отношению к параметру min, форма [d]: sum_per_d(gradients * (inputs < min)).
  • Output backprop_wrt_max: Градиенты обратного распространения по отношению к параметру max, форма [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
::tensorflow::Output
backprop_wrt_min
::tensorflow::Output
backprops_wrt_input
::tensorflow::Output
operation
Operation
Общедоступные статические функции
NarrowRange(bool x)
Attrs
NumBits(int64 x)
Attrs
Структуры
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 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
)

Общедоступные статические функции

NarrowRange

Attrs NarrowRange(
  bool x
)

NumBits

Attrs NumBits(
  int64 x
)

© 2020 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r1.15/api_docs/cc/class/tensorflow/ops/fake-quant-with-min-max-vars-per-channel-gradient

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API