Program Listing for File leaky_relu.h
↰ Return to documentation for file (include/converter/include/ops/leaky_relu.h
)
#ifndef MINDSPORE_CORE_OPS_LEAKY_RELU_H_
#define MINDSPORE_CORE_OPS_LEAKY_RELU_H_
#include <map>
#include <memory>
#include <string>
#include <vector>
#include "mindapi/base/types.h"
#include "ops/base_operator.h"
namespace mindspore {
namespace ops {
constexpr auto kNameLeakyRelu = "LeakyRelu";
class MIND_API LeakyRelu : public BaseOperator {
public:
MIND_API_BASE_MEMBER(LeakyRelu);
LeakyRelu() : BaseOperator(kNameLeakyRelu) {}
void Init(const float negative_slope);
void set_negative_slope(const float negative_slope);
float get_negative_slope() const;
};
MIND_API abstract::AbstractBasePtr LeakyReluInfer(const abstract::AnalysisEnginePtr &, const PrimitivePtr &primitive,
const std::vector<abstract::AbstractBasePtr> &input_args);
} // namespace ops
} // namespace mindspore
#endif // MINDSPORE_CORE_OPS_LEAKY_RELU_H_