Spec-Zone.ru › TensorFlow C++

tensorflow::ops::ApplyPowerSign

#include <training_ops.h>

Обновление '*var' в соответствии с обновлением AddSign.

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

m_t <- beta1 * m_{t-1} + (1 - beta1) * g обновление <- exp(logbase * sign_decay * sign(g) * sign(m_t)) * g переменная <- переменная - lr_t * обновление

Аргументы:

  • scope: Объект Scope
  • var: Должен быть из Variable().
  • m: Должен быть из Variable().
  • lr: Коэффициент масштабирования. Должен быть скаляром.
  • logbase: Должен быть скаляром.
  • sign_decay: Должен быть скаляром.
  • beta: Должен быть скаляром.
  • grad: Градиент.

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

  • use_locking: Если True, обновление тензоров var и m защищено блокировкой; в противном случае поведение не определено, но может проявлять меньшую конкуренцию.

Возвращает:

  • Output: То же, что и "var".
Конструкторы и деструкторы
ApplyPowerSign(const ::tensorflow::Scope & scope, ::tensorflow::Input var, ::tensorflow::Input m, ::tensorflow::Input lr, ::tensorflow::Input logbase, ::tensorflow::Input sign_decay, ::tensorflow::Input beta, ::tensorflow::Input grad)
ApplyPowerSign(const ::tensorflow::Scope & scope, ::tensorflow::Input var, ::tensorflow::Input m, ::tensorflow::Input lr, ::tensorflow::Input logbase, ::tensorflow::Input sign_decay, ::tensorflow::Input beta, ::tensorflow::Input grad, const ApplyPowerSign::Attrs & attrs)
Общедоступные атрибуты
operation
Operation
out
::tensorflow::Output
Общедоступные функции
node() const
::tensorflow::Node *
operator::tensorflow::Input() const
operator::tensorflow::Output() const
Общедоступные статические функции
UseLocking(bool x)
Attrs
Структуры
tensorflow::ops::ApplyPowerSign::Attrs

Необязательные методы установки атрибутов для ApplyPowerSign.

Общедоступные атрибуты

operation

Operation operation

out

::tensorflow::Output out

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

ApplyPowerSign

 ApplyPowerSign(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input var,
  ::tensorflow::Input m,
  ::tensorflow::Input lr,
  ::tensorflow::Input logbase,
  ::tensorflow::Input sign_decay,
  ::tensorflow::Input beta,
  ::tensorflow::Input grad
)

ApplyPowerSign

 ApplyPowerSign(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input var,
  ::tensorflow::Input m,
  ::tensorflow::Input lr,
  ::tensorflow::Input logbase,
  ::tensorflow::Input sign_decay,
  ::tensorflow::Input beta,
  ::tensorflow::Input grad,
  const ApplyPowerSign::Attrs & attrs
)

node

::tensorflow::Node * node() const 

operator::tensorflow::Input

operator::tensorflow::Input() const 

operator::tensorflow::Output

operator::tensorflow::Output() const 

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

UseLocking

Attrs UseLocking(
  bool 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/apply-power-sign

Spec-Zone.ru

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