Class ov::op::v0::HardSigmoid#

class HardSigmoid : public ov::op::Op#

Parameterized, bounded sigmoid-like, piecewise linear function. min(max(alpha*x + beta, 0), 1)

Public Functions

HardSigmoid(const Output<Node> &data, const Output<Node> &alpha, const Output<Node> &beta)#

Constructs a HardSigmoid operation.

Parameters:
  • dataInput tensor.

  • alpha[in] A scalar value representing the alpha parameter.

  • beta[in] A scalar value representing the beta parameter.

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.