Program Listing for File apply_centered_rms_prop.h

Return to documentation for file (include/core/ops/apply_centered_rms_prop.h)

#ifndef MINDSPORE_CORE_OPS_APPLY_CENTERED_RMS_PROP_H_
#define MINDSPORE_CORE_OPS_APPLY_CENTERED_RMS_PROP_H_
#include <vector>
#include <memory>
#include <string>
#include <set>
#include <map>

#include "ops/primitive_c.h"
#include "abstract/abstract_value.h"
#include "utils/check_convert_utils.h"

namespace mindspore {
namespace ops {
constexpr auto kNameApplyCenteredRMSProp = "ApplyCenteredRMSProp";
class ApplyCenteredRMSProp : public PrimitiveC {
 public:
  ApplyCenteredRMSProp() : PrimitiveC(kNameApplyCenteredRMSProp) {
    InitIOName(
      {"var", "mean_gradient", "mean_square", "moment", "grad", "learning_rate", "decay", "momentum", "epsilon"},
      {"var", "mean_gradient", "mean_square", "moment"});
  }
  ~ApplyCenteredRMSProp() = default;
  MS_DECLARE_PARENT(ApplyCenteredRMSProp, PrimitiveC);
};
AbstractBasePtr ApplyCenteredRMSPropInfer(const abstract::AnalysisEnginePtr &, const PrimitivePtr &primitive,
                                          const std::vector<AbstractBasePtr> &input_args);
using kPrimApplyCenteredRMSPropPtr = std::shared_ptr<ApplyCenteredRMSProp>;
}  // namespace ops
}  // namespace mindspore
#endif  // MINDSPORE_CORE_OPS_APPLY_CENTERED_RMS_PROP_H_