Spec-Zone.ru › TensorFlow C++ 2.9

tensorflow::ops::ResourceApplyGradientDescent

#include <training_ops.h>

Обновляет '*var', вычитая из него 'alpha' * 'delta'.

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

Аргументы:

  • scope: Объект Scope
  • var: Должен быть из Variable().
  • alpha: Коэффициент масштабирования. Должен быть скаляром.
  • delta: Изменение.

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

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

Возвращает:

  • созданный Operation
Конструкторы и деструкторы
ResourceApplyGradientDescent(const ::tensorflow::Scope & scope, ::tensorflow::Input var, ::tensorflow::Input alpha, ::tensorflow::Input delta)
ResourceApplyGradientDescent(const ::tensorflow::Scope & scope, ::tensorflow::Input var, ::tensorflow::Input alpha, ::tensorflow::Input delta, const ResourceApplyGradientDescent::Attrs & attrs)
Публичные атрибуты
operation
Operation
Публичные функции
operator::tensorflow::Operation() const
Публичные статические функции
UseLocking(bool x)
Attrs
Структуры
tensorflow::ops::ResourceApplyGradientDescent::Attrs

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

Публичные атрибуты

operation

Operation operation

Публичные функции

ResourceApplyGradientDescent

 ResourceApplyGradientDescent(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input var,
  ::tensorflow::Input alpha,
  ::tensorflow::Input delta
)

ResourceApplyGradientDescent

 ResourceApplyGradientDescent(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input var,
  ::tensorflow::Input alpha,
  ::tensorflow::Input delta,
  const ResourceApplyGradientDescent::Attrs & attrs
)

Оператор::tensorflow::Operation

operator::tensorflow::Operation() 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/versions/r2.9/api_docs/cc/class/tensorflow/ops/resource-apply-gradient-descent

Spec-Zone.ru

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