Program Listing for File prelu.h

Return to documentation for file (include/converter/include/ops/prelu.h)

#ifndef MINDSPORE_CORE_OPS_PRELU_H_
#define MINDSPORE_CORE_OPS_PRELU_H_
#include <memory>
#include <string>
#include <vector>

#include "mindapi/base/types.h"
#include "ops/base_operator.h"

namespace mindspore {
namespace ops {
constexpr auto kNamePReLU = "PReLU";
class MIND_API PReLU : public BaseOperator {
 public:
  MIND_API_BASE_MEMBER(PReLU);
  PReLU() : BaseOperator(kNamePReLU) { InitIOName({"x", "weight"}, {"output"}); }
  explicit PReLU(const std::string k_name) : BaseOperator(k_name) { InitIOName({"x", "weight"}, {"output"}); }
  void Init() const {}
};

MIND_API abstract::AbstractBasePtr PReLUInfer(const abstract::AnalysisEnginePtr &, const PrimitivePtr &primitive,
                                              const std::vector<abstract::AbstractBasePtr> &input_args);
}  // namespace ops
}  // namespace mindspore

#endif  // MINDSPORE_CORE_OPS_PRELU_H_