Spec-Zone.ru › TensorFlow C++ 2.4

tensorflow::ops::FakeQuantWithMinMaxVarsGradient

#include <array_ops.h>

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

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

Аргументы:

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

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

  • num_bits: Разрядность квантования; от 2 до 8 включительно.
  • narrow_range: Флаг, указывающий, следует ли квантовать в 2^num_bits - 1 различных значений.

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

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

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

NarrowRange

Attrs NarrowRange(
  bool x
)

NumBits

Attrs NumBits(
  int64 x
)

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

Spec-Zone.ru

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