ApplyGradientDescent
tensorflow C++ API
tensorflow::ops::ApplyGradientDescent
Update ‘*var’ by subtracting ‘alpha’ * ‘delta’ from it.
Summary
Arguments:
- scope: A Scope object
- var: Should be from a Variable().
- alpha: Scaling factor. Must be a scalar.
- delta: The change.
Optional attributes (seeAttrs
):
- use_locking: If
True
, the subtraction will be protected by a lock; otherwise the behavior is undefined, but may exhibit less contention.
Returns:
Output
: Same as “var”.
ApplyGradientDescent block
Source link : https://github.com/EXPNUNI/enuSpaceTensorflow/blob/master/enuSpaceTensorflow/tf_training.cpp
Argument:
- Scope scope : A Scope object (A scope is generated automatically each page. A scope is not connected.)
- Input var: connect Input node.
- Input alpha: connect Input node.
- Input delta: connect Input node.
- ApplyGradientDescent ::Attrs attrs : Input attrs in value. ex) use_locking_ = false;
Return:
- Output output : Output object of ApplyFtrl class object.
Result:
- std::vector(Tensor) result_output : Returned object of executed result by calling session.