Class ov::op::v0::Elu#

class Elu : public ov::op::util::UnaryElementwiseArithmetic#

Exponential Linear Unit x < 0 => f(x) = alpha * (exp(x) - 1.) x >= 0 => f(x) = x.

Public Functions

Elu(const Output<Node> &data, const double alpha)#

Constructs an Elu operation.

Parameters:
  • dataInput tensor

  • alpha – Multiplier for negative values

virtual void validate_and_infer_types() override#

Verifies that attributes and inputs are consistent and computes output shapes and element types. Must be implemented by concrete child classes so that it can be run any number of times.

Throws if the node is invalid.