openvino.runtime.opset8.prelu#
- openvino.runtime.opset8.prelu(data: Node | int | float | ndarray, slope: Node | int | float | ndarray, name: str | None = None) Node #
Perform Parametrized Relu operation element-wise on data from input node.
- Parameters:
data – The node with data tensor.
slope – The node with the multipliers for negative values.
name – Optional output node name.
- Returns:
The new node performing a PRelu operation on tensor’s channels.
PRelu uses the following logic:
if data < 0: data = data * slope elif data >= 0: data = data