Class LeakyRelu

Inheritance Relationships

Base Type

  • public mindspore::ops::BaseOperator

Class Documentation

class LeakyRelu : public mindspore::ops::BaseOperator

Leaky ReLU activation function. Refer to Python API mindspore.nn.LeakyReLU for more details.

Public Functions

inline LeakyRelu()

Constructor.

void Init(const float negative_slope)

Init. Refer to the parameters of Python API mindspore.nn.LeakyReLU for the inputs.

void set_negative_slope(const float negative_slope)

Set negative_slope.

float get_negative_slope() const

Get negative_slope.

Returns

negative_slope.