3
I4W^&  ã               @   sL   d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ dd„ Zd	S )
z¢
The HIP test utils is a small addition on top of the hypothesis test utils
under caffe2/python, which allows one to more easily test HIP/ROCm related
operators.
é    )Úabsolute_import)Údivision)Úprint_function)Úunicode_literals)Ú
caffe2_pb2c             C   s    | j tjkptjdd„ |D ƒkS )Nc             S   s   h | ]
}|j ’qS © )Údevice_type)Ú.0Údr   r   ú</tmp/pip-build-e66j97b2/torch/caffe2/python/hip_test_util.pyú	<setcomp>   s    zrun_in_hip.<locals>.<setcomp>)r   r   ZHIP)ÚgcÚdcr   r   r   Ú
run_in_hip   s    r   N)	Ú__doc__Ú
__future__r   r   r   r   Zcaffe2.protor   r   r   r   r   r   Ú<module>   s   