Spec-Zone.ru › TensorFlow C++ 2.3

tensorflow::ops::ApplyGradientDescent

#include <training_ops.h>

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

Summary

Arguments:

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

Optional attributes (see Attrs):

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

Returns:

  • Output: Идентично "var".
Конструкторы и деструкторы
ApplyGradientDescent(const ::tensorflow::Scope & scope, ::tensorflow::Input var, ::tensorflow::Input alpha, ::tensorflow::Input delta)
ApplyGradientDescent(const ::tensorflow::Scope & scope, ::tensorflow::Input var, ::tensorflow::Input alpha, ::tensorflow::Input delta, const ApplyGradientDescent::Attrs & attrs)
Public attributes
operation
Operation
out
::tensorflow::Output
Public functions
node() const
::tensorflow::Node *
operator::tensorflow::Input() const
operator::tensorflow::Output() const
Public static functions
UseLocking(bool x)
Attrs
Structs
tensorflow::ops::ApplyGradientDescent::Attrs

Optional attribute setters for ApplyGradientDescent.

Public attributes

operation

Operation operation

out

::tensorflow::Output out

Public functions

ApplyGradientDescent

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

ApplyGradientDescent

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

node

::tensorflow::Node * node() const 

operator::tensorflow::Input

operator::tensorflow::Input() const 

operator::tensorflow::Output

operator::tensorflow::Output() const 

Public static functions

UseLocking

Attrs UseLocking(
  bool x
)

© 2020 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r2.3/api_docs/cc/class/tensorflow/ops/apply-gradient-descent

Spec-Zone.ru

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