a
    Þñh  ã                   @   s^   d dl mZ d dlm  mZ d dlZg d¢Zddd„Zd	dd„Z	eD ]Z
ee
ƒeƒ e
< qFdS )
é    )Ú_block_list_in_opsetN)
ÚscanÚexpandZ	expand_asZmeshgridZadaptive_max_pool1dZadaptive_max_pool2dZadaptive_max_pool3dZmax_pool1d_with_indicesZmax_pool2d_with_indicesZmax_pool3d_with_indicesc                 C   s*   |d u r|d urt  d¡ t | |||¡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ÚselfZdim_or_yZkeepdim© r   úZ/home/yuhw/wc/uboone-dl-vtx/venv/lib/python3.9/site-packages/torch/onnx/symbolic_opset7.pyr      s    
r   c                 C   s*   |d u r|d urt  d¡ t | |||¡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   Úminr	   r   r   r   r   %   s    
r   )NN)NN)Ztorch.onnx.symbolic_helperr   Ztorch.onnx.symbolic_opset9ZonnxZsymbolic_opset9r   r   Zblock_listed_operatorsr   r   Zblock_listed_opÚvarsr   r   r   r   Ú<module>   s   

	
	