#ifndef MIGRAPHX_GUARD_OPERATORS_LEAKY_RELU_HPP #define MIGRAPHX_GUARD_OPERATORS_LEAKY_RELU_HPP #include #include #include #include #include #include #include #include #include #include namespace migraphx { inline namespace MIGRAPHX_INLINE_NS { namespace op { struct leaky_relu { float alpha; template static auto reflect(Self& self, F f) { return pack(f(self.alpha, "alpha")); } std::string name() const { return "leaky_relu"; } shape compute_shape(std::vector inputs) const { check_shapes{inputs, *this}.has(1); return inputs.front(); } }; } // namespace op } // namespace MIGRAPHX_INLINE_NS } // namespace migraphx #endif