
    h                     J    S SK r S SKrS SKrSSKJr  S r\S:X  a  \" 5         gg)    N   )update_onnx_opsetc                     [         R                  " [        R                  R	                  [
        5       S[        R                   3SS9n U R                  S[        SSSS9  U R                  S	[        R                  S
S9  U R                  S[        R                  SS9  U R                  5       n[        UR                  UR                  UR                   5        g )N:a  
                                     Update the ONNX opset of the model.
                                     New opset must be later than the existing one.
                                     If not specified will update to opset 15.
                                     )descriptionz--opsetF   zONNX opset to update to.)typerequireddefaulthelpinput_modelz%Provide path to ONNX model to update.)r	   r   output_modelz,Provide path to write updated ONNX model to.)argparseArgumentParserospathbasename__file__update_onnx_opset_helper__name__add_argumentintpathlibPath
parse_argsr   r   opsetr   )parserargss     ]/var/www/fran/franai/venv/lib/python3.13/site-packages/onnxruntime/tools/update_onnx_opset.pyr   r      s    $$77H%
&a(@(I(I'JK)F 	eRNhi
GLL?fg
W\\@noDd&&

D4E4EF    __main__)r   r   r   onnx_model_utilsr   r   r    r    r   <module>r$      s.   
  	  /G$ z r    