Program Listing for File exp_fusion.h

Return to documentation for file (include/converter/include/infer/cxx_api/exp_fusion.h)

#ifndef MINDSPORE_CORE_OPS_EXP_FUSION_H_
#define MINDSPORE_CORE_OPS_EXP_FUSION_H_

#include "ops/base_operator.h"

namespace mindspore {
namespace ops {
constexpr auto kNameExpFusion = "ExpFusion";
class OPS_API ExpFusion : public BaseOperator {
 public:
  MIND_API_BASE_MEMBER(ExpFusion);
  ExpFusion() : BaseOperator(kNameExpFusion) { InitIOName({"x"}, {"y"}); }

  void Init(const float base = -1.0, const float scale = 1.0, const float shift = 0.0);

  void set_base(const float base);

  void set_scale(const float scale);

  void set_shift(const float shift);

  float get_base() const;

  float get_scale() const;

  float get_shift() const;
};
}  // namespace ops
}  // namespace mindspore

#endif  // MINDSPORE_CORE_OPS_EXP_FUSION_H_