Spec-Zone.ru › TensorFlow C++

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
)

© 2022 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/api_docs/cc/class/tensorflow/ops/fake-quant-with-min-max-vars-per-channel-gradient

Spec-Zone.ru

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