U
    q±Ëhž  ã                   @  s6   d dl mZ d dlmZ ddd„ZG dd„ deƒZdS )	é    )Úannotations)ÚOpRunAiOnnxMlNc                 C  s   | |k  | j¡fS ©N)ZastypeZdtype)ÚxÚ	threshold© r   úL/tmp/pip-unpacked-wheel-xnis5xre/onnx/reference/ops/aionnxml/op_binarizer.pyÚcompute_binarizer	   s    r	   c                   @  s   e Zd Zddd„ZdS )Ú	BinarizerNc                 C  s
   t ||ƒS r   )r	   )Úselfr   r   r   r   r   Ú_run   s    zBinarizer._run)N)Ú__name__Ú
__module__Ú__qualname__r   r   r   r   r   r
      s   r
   )N)Ú
__future__r   Z,onnx.reference.ops.aionnxml._op_run_aionnxmlr   r	   r
   r   r   r   r   Ú<module>   s   
