U
    rh                     @  s   d dl mZ d dlZd dlZd dlmZ d dlZd dlm	Z	 ej
ejejejejejejejejejejgZddddd	ZdS )
    )annotationsN)
ModuleType)ONNX_MLr   None)packagereturnc                 C  s^   d}| j }| j}t|D ]>\}}}| d| }tsB|drBqt|}|rt| qdS )z6Takes a package and imports all modules underneath it.N.z&onnx.backend.test.case.node.ai_onnx_ml)	__path____name__pkgutiliter_modulesr   
startswith	importlibimport_moduleimport_recursive)r   Zpkg_dirZmodule_locationZ_module_loadernameispkgmodule_namemodule r   @/tmp/pip-unpacked-wheel-xnis5xre/onnx/backend/test/case/utils.pyr      s    
r   )
__future__r   r   r   typesr   ZnumpynpZonnxr   Zint8Zint16Zint32Zint64Zuint8Zuint16Zuint32Zuint64Zfloat16Zfloat32Zfloat64Zall_numeric_dtypesr   r   r   r   r   <module>   s$   