Ë
    b¤Igº  ã                  óZ   — d dl mZ d dlZd dlmc mZ 	 d	 	 	 	 	 dd„Z	 d	 	 	 	 	 	 	 dd„Zy)é    )ÚannotationsNc                ó˜   — t        j                  | j                  «       |«      }t        j                  «       }|j                  |«       |S )ab  Inline model-local functions in given model.

    Arguments:
        model: an ONNX ModelProto
        convert_version: if true, try to apply automatic version-conversion to functions requiring a
            different (ONNX) opset version from the model.

    Returns:
        ModelProto with all calls to model-local functions inlined (recursively)
    )ÚCÚinline_local_functionsÚSerializeToStringÚonnxÚ
ModelProtoÚParseFromString)ÚmodelÚconvert_versionÚresultÚinlined_models       úI/var/www/html/answerous/venv/lib/python3.12/site-packages/onnx/inliner.pyr   r      s?   € ô ×%Ñ% e×&=Ñ&=Ó&?ÀÓQ€FÜ—O‘OÓ%€MØ×!Ñ! &Ô)ØÐó    c                óš   — t        j                  | j                  «       ||«      }t        j                  «       }|j                  |«       |S )aü  Inline selected model-local functions in given model.

    Arguments:
        model: an ONNX ModelProto
        function_ids: list of functions to include/exclude when inlining. Each
            element is a tuple of (function domain, function name).
        exclude: if true, inlines all functions except those specified in function_ids.
           if false, inlines all functions specified in function_ids.

    Returns:
        ModelProto with all calls to model-local functions inlined (recursively)
    )r   Úinline_selected_functionsr   r   r	   r
   )r   Úfunction_idsÚexcluder   r   s        r   r   r      sF   € ô ×(Ñ(Ø×ÑÓ! <°ó€Fô —O‘OÓ%€MØ×!Ñ! &Ô)ØÐr   )F)r   úonnx.ModelProtor   ÚboolÚreturnr   )r   r   r   zlist[tuple[str, str]]r   r   r   r   )	Ú
__future__r   r   Úonnx.onnx_cpp2py_export.inlinerÚonnx_cpp2py_exportÚinlinerr   r   r   © r   r   ú<module>r      sa   ðõ
 #ã ß +Ð +ð 5:ðØðØ-1ðàóð( RWðØðØ*?ðØJNðàôr   