openvino.runtime.opset9.select¶
- openvino.runtime.opset9.select(cond: Union[openvino._pyopenvino.Node, int, float, numpy.ndarray], then_node: Union[openvino._pyopenvino.Node, int, float, numpy.ndarray], else_node: Union[openvino._pyopenvino.Node, int, float, numpy.ndarray], auto_broadcast: str = 'numpy', name: Optional[str] = None) openvino._pyopenvino.Node ¶
Perform an element-wise selection operation on input tensors.
- Parameters
cond – Tensor with selection mask of type boolean.
then_node – Tensor providing data to be selected if respective cond item value is True.
else_node – Tensor providing data to be selected if respective cond item value is False.
auto_broadcast – Mode specifies rules used for auto-broadcasting of input tensors.
name – The optional new name for output node.
- Returns
The new node with values selected according to provided arguments.