Program Listing for File prelu_fusion.h

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

#ifndef MINDSPORE_CORE_OPS_PRELU_FUSION_H_
#define MINDSPORE_CORE_OPS_PRELU_FUSION_H_
#include <vector>

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

namespace mindspore {
namespace ops {
constexpr auto kNamePReLUFusion = "PReLUFusion";
class MIND_API PReLUFusion : public PReLU {
 public:
  MIND_API_BASE_MEMBER(PReLUFusion);
  PReLUFusion() : PReLU(kNamePReLUFusion) {}

  void Init(const bool channel_shared, const std::vector<float> &slope);

  void set_channel_shared(const bool channel_shared);

  void set_slope(const std::vector<float> &slope);

  bool get_channel_shared() const;

  std::vector<float> get_slope() const;
};
}  // namespace ops
}  // namespace mindspore

#endif  // MINDSPORE_CORE_OPS_PRELU_FUSION_H_