openvino.runtime.opset14.non_zero

openvino.runtime.opset14.non_zero(data: Union[openvino._pyopenvino.Node, int, float, numpy.ndarray], output_type: str = 'i64', name: Optional[str] = None) openvino._pyopenvino.Node

Return the indices of the elements that are non-zero.

Parameters
  • data – Input data.

  • output_type – Output tensor type.

Returns

The new node which performs NonZero