Program Listing for File elu.h
↰ Return to documentation for file (include/converter/include/ops/elu.h
)
#ifndef MINDSPORE_CORE_OPS_ELU_H_
#define MINDSPORE_CORE_OPS_ELU_H_
#include <memory>
#include <vector>
#include "mindapi/base/types.h"
#include "ops/base_operator.h"
namespace mindspore {
namespace ops {
constexpr auto kNameElu = "Elu";
class MIND_API Elu : public BaseOperator {
public:
MIND_API_BASE_MEMBER(Elu);
Elu() : BaseOperator(kNameElu) { InitIOName({"x"}, {"output"}); }
void Init(const float alpha = 0.0);
void set_alpha(const float alpha);
float get_alpha() const;
};
MIND_API abstract::AbstractBasePtr EluInfer(const abstract::AnalysisEnginePtr &, const PrimitivePtr &primitive,
const std::vector<abstract::AbstractBasePtr> &input_args);
using PrimElu = std::shared_ptr<Elu>;
} // namespace ops
} // namespace mindspore
#endif // MINDSPORE_CORE_OPS_ELU_H_