openvino.runtime.opset10.hard_sigmoid

openvino.runtime.opset10.hard_sigmoid(data: openvino._pyopenvino.Node, alpha: Union[openvino._pyopenvino.Node, int, float, numpy.ndarray], beta: Union[openvino._pyopenvino.Node, int, float, numpy.ndarray], name: Optional[str] = None) openvino._pyopenvino.Node

Perform Hard Sigmoid operation element-wise on data from input node.

Parameters
  • data – The node with data tensor.

  • alpha – A node producing the alpha parameter.

  • beta – A node producing the beta parameter

  • name – Optional output node name.

Returns

The new node performing a Hard Sigmoid element-wise on input tensor.

Hard Sigmoid uses the following logic:

y = max(0, min(1, alpha * data + beta))