Ë
    Ÿ‘ij  ã                   óv   — d Z ddlZddlmZ ddlmZ ddlmZ ddlm	Z
  ej                  «       ZdZ	 	 	 	 d	d„Zy)
zCProvides a proper python API for the symbols exported through swig.é    N)Ú	graph_pb2)Ú
config_pb2)Ú_pywrap_tf_optimizer)ÚclusterTc           	      óz  — t        | t        j                  «      s!t        dt	        | «      j
                  › �«      ‚t        r!t        j                  }|j                  «       }nt        j                  }|�& ||j                  | j                  «       ||||«      }nZt        5  t        j                  «       }	  ||j                  | j                  «       ||||«      }|j                  «        	 ddd«       t        rt         j"                  j%                  «      }S # |j                  «        w xY w# 1 sw Y   ŒExY w)a	  Optimize the provided metagraph.

  For best results, the signature_def field in `metagraph` should be populated
  with information about input (feed) and output (fetch) tensors.

  Args:
    config_proto: a ConfigProto protobuf.
    metagraph: a MetagraphDef protobuf.
    verbose: whether to log optimization results.
    graph_id: a string identifying this graph.
    cluster: a grappler cluster object representing hardware resources
        available to run this graph.
    strip_default_attributes: whether graph node attributes having default
        values should be removed after all the optimization passes. This
        option is useful if the resulting graph will be executed by an older
        process that might not know some of the recently added attributes.
  zCArgument `config_proto` should be a tf.ConfigProto, received type: N)Ú
isinstancer   ÚConfigProtoÚ	TypeErrorÚtypeÚ__name__Úis_ossÚtf_optÚTF_OptimizeGraphSerializedÚSerializeToStringÚTF_OptimizeGraphÚ
tf_clusterÚ_OPTIMIZE_GRAPH_CLUSTER_LOCKÚgclusterÚClusterÚShutdownr   ÚGraphDefÚ
FromString)Úconfig_protoÚ	metagraphÚverboseÚgraph_idr   Ústrip_default_attributesÚoptimize_methodÚ	out_graphs           ú|/var/www/html/emotional.easysim.app/public_html/venv/lib/python3.12/site-packages/tensorflow/python/grappler/tf_optimizer.pyÚOptimizeGraphr!      s.  € ô. 
�L¤*×"8Ñ"8Ô	9Ü
ð &Ü&*¨<Ó&8×&AÑ&AÐ%BðDó Eð EåÜ×7Ñ7€OØ×+Ñ+Ó-�Iä×-Ñ-€OàÐÙØ×ÑØ×&Ñ&Ó(ØØØØ ó�Iô 
&ñ Ü× Ñ Ó"€gðÙ#Ø×ÑØ×*Ñ*Ó,ØØØØ$ó
ˆ	ð 	×ÑÕ÷õ  Ü×"Ñ"×-Ñ-¨iÓ8€IØ	Ðøð 	×ÑÕú÷ð ús$   Â!D1Â7%DÃD1ÄD.Ä.D1Ä1D:)Ts   graph_to_optimizeNF)Ú__doc__Ú	threadingÚtensorflow.core.frameworkr   Útensorflow.core.protobufr   Útensorflow.python.grapplerr   r   r   r   ÚLockr   r   r!   © ó    r    ú<module>r*      sA   ðñ Jã å /Ý /Ý EÝ :à-˜yŸ~™~Ó/Ð Ø	€ð
 Ø/ØØ+0ô?r)   