Program Listing for File prelu_fusion.h
↰ Return to documentation for file (include/converter/include/infer/cxx_api/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/base_operator.h"
namespace mindspore {
namespace ops {
constexpr auto kNamePReLUFusion = "PReLUFusion";
class OPS_API PReLUFusion : public BaseOperator {
public:
MIND_API_BASE_MEMBER(PReLUFusion);
PReLUFusion() : BaseOperator(kNamePReLUFusion) { InitIOName({"x", "weight"}, {"output"}); }
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_