ó
    þSÎi:  ã                  óh   • 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$ )aF  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       ÚK/var/www/html/ai-image-ml/venv/lib/python3.13/site-packages/onnx/inliner.pyr   r      s?   € ô ×%Ò% e×&=Ñ&=Ó&?ÀÓQ€FÜ—O’OÓ%€MØ×!Ñ! &Ô)ØÐó    c                óö   • U(       a&  [         R                  " U R                  5       X5      nO%[         R                  " U R                  5       X5      n[        R
                  " 5       nUR                  U5        U$ )ap  Inline selected 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.
    inline_schema_functions: if true, inlines schema-defined functions as well
        as model-local functions. Otherwise, only model-local functions are inlined.

Returns:
    ModelProto with all calls to model-local functions inlined (recursively)
)r   Úinline_selected_functions2r   Úinline_selected_functionsr   r	   r
   )r   Úfunction_idsÚexcludeÚinline_schema_functionsr   r   s         r   r   r      sg   € ö( Ü×-Ò-Ø×#Ñ#Ó% |ó
‰ô ×,Ò,Ø×#Ñ#Ó% |ó
ˆô —O’OÓ%€MØ×!Ñ! &Ô)ØÐr   )F)r   úonnx.ModelProtor   ÚboolÚreturnr   )FF)
r   r   r   zlist[tuple[str, str]]r   r   r   r   r   r   )	Ú
__future__r   r   Úonnx.onnx_cpp2py_export.inlinerÚonnx_cpp2py_exportÚinlinerr   r   r   © r   r   Ú<module>r      sp   ðõ
 #ã ß +Ð +ð 5:ðØðØ-1ðàõð, Ø$)ð	Øðà'ðð ðð "ð	ð
 ör   