W3cubDocs

/TensorFlow C++

tensorflow::ops::ResourceApplyRMSProp

#include <training_ops.h>

Update '*var' according to the RMSProp algorithm.

Summary

Note that in dense implementation of this algorithm, ms and mom will update even if the grad is zero, but in this sparse implementation, ms and mom will not update in iterations during which the grad is zero.

mean_square = decay * mean_square + (1-decay) * gradient ** 2 Delta = learning_rate * gradient / sqrt(mean_square + epsilon)

ms

Arguments:

  • scope: A Scope object
  • var: Should be from a Variable().
  • ms: Should be from a Variable().
  • mom: Should be from a Variable().
  • lr: Scaling factor. Must be a scalar.
  • rho: Decay rate. Must be a scalar.
  • epsilon: Ridge term. Must be a scalar.
  • grad: The gradient.

Optional attributes (see Attrs):

  • use_locking: If True, updating of the var, ms, and mom tensors is protected by a lock; otherwise the behavior is undefined, but may exhibit less contention.

Returns:

Constructors and Destructors
ResourceApplyRMSProp(const ::tensorflow::Scope & scope, ::tensorflow::Input var, ::tensorflow::Input ms, ::tensorflow::Input mom, ::tensorflow::Input lr, ::tensorflow::Input rho, ::tensorflow::Input momentum, ::tensorflow::Input epsilon, ::tensorflow::Input grad)
ResourceApplyRMSProp(const ::tensorflow::Scope & scope, ::tensorflow::Input var, ::tensorflow::Input ms, ::tensorflow::Input mom, ::tensorflow::Input lr, ::tensorflow::Input rho, ::tensorflow::Input momentum, ::tensorflow::Input epsilon, ::tensorflow::Input grad, const ResourceApplyRMSProp::Attrs & attrs)
Public attributes
operation
Public functions
operator::tensorflow::Operation() const
Public static functions
UseLocking(bool x)
Structs
tensorflow::ops::ResourceApplyRMSProp::Attrs

Optional attribute setters for ResourceApplyRMSProp.

Public attributes

operation

Operation operation

Public functions

ResourceApplyRMSProp

 ResourceApplyRMSProp(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input var,
  ::tensorflow::Input ms,
  ::tensorflow::Input mom,
  ::tensorflow::Input lr,
  ::tensorflow::Input rho,
  ::tensorflow::Input momentum,
  ::tensorflow::Input epsilon,
  ::tensorflow::Input grad
)

ResourceApplyRMSProp

 ResourceApplyRMSProp(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input var,
  ::tensorflow::Input ms,
  ::tensorflow::Input mom,
  ::tensorflow::Input lr,
  ::tensorflow::Input rho,
  ::tensorflow::Input momentum,
  ::tensorflow::Input epsilon,
  ::tensorflow::Input grad,
  const ResourceApplyRMSProp::Attrs & attrs
)

operator::tensorflow::Operation

operator::tensorflow::Operation() const 

Public static functions

UseLocking

Attrs UseLocking(
  bool x
)

© 2018 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/api_docs/cc/class/tensorflow/ops/resource-apply-r-m-s-prop.html