ó
    ¿íØh¸  ã                  ób   • S SK Jr  S SKrS SKJs  Jr   S     SS jjr S       SS jjrg)é    )ÚannotationsNc                óœ   • [         R                  " U R                  5       U5      n[        R                  " 5       nUR                  U5        U$ )aE  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       ÚF/var/www/fran/franai/venv/lib/python3.13/site-packages/onnx/inliner.pyr   r      s?   € ô ×%Ò% e×&=Ñ&=Ó&?ÀÓQ€FÜ—O’OÓ%€MØ×!Ñ! &Ô)ØÐó    c                óœ   • [         R                  " U R                  5       X5      n[        R                  " 5       nUR                  U5        U$ )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      sD   € ô ×(Ò(Ø×ÑÓ! <ó€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   