Spec-Zone.ru › TensorFlow C++ 2.4

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::Операция

operator::tensorflow::Operation() const 

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

UseLocking

Attrs UseLocking(
  bool 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/resource-apply-gradient-descent

Spec-Zone.ru

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