3
I4W^  ã            	   @   sj   d dl mZ d dljjZd dlZddddddd	d
dg	Zddd„Zddd„Z	xeD ]Z
ee
ƒeƒ e
< qPW dS )é    )Ú_black_list_in_opsetNÚscanÚexpandZ	expand_asZadaptive_max_pool1dZadaptive_max_pool2dZadaptive_max_pool3dZmax_pool1d_with_indicesZmax_pool2d_with_indicesZmax_pool3d_with_indicesc             C   s*   |d kr|d k	rt jdƒ tj| |||ƒS )NzœMultidirectional broadcasting is not supported in opset 7. This might cause the onnx model to be incorrect, if inputs to max operators have different shapes)ÚwarningsÚwarnÚ
sym_opset9Úmax)ÚgÚselfÚdim_or_yÚkeepdim© r   ú;/tmp/pip-build-e66j97b2/torch/torch/onnx/symbolic_opset7.pyr      s    
r   c             C   s*   |d kr|d k	rt jdƒ tj| |||ƒS )NzœMultidirectional broadcasting is not supported in opset 7. This might cause the onnx model to be incorrect, if inputs to min operators have different shapes)r   r   r   Úmin)r	   r
   r   r   r   r   r   r   %   s    
r   )NN)NN)Ztorch.onnx.symbolic_helperr   Ztorch.onnx.symbolic_opset9ZonnxZsymbolic_opset9r   r   Zblack_listed_operatorsr   r   Zblack_listed_opÚvarsr   r   r   r   Ú<module>   s   

	
	
