Ë
    BÆVh3  ã                   ó„   — d Z ddlmZ ddlmZ ddlmZ ddlmZ  ej                  dd«       edg¬	«      d
„ «       «       Z
y)z!Quantize training for TensorFlow.é    )Ú	graph_pb2)Ú"DoQuantizeTrainingOnGraphDefHelper)Údeprecation)Ú	tf_exportNzDGraphDef quantized training rewriter is deprecated in the long term.z&train.do_quantize_training_on_graphdef)Úv1c                 ó„   — t        j                  «       }t        | j                  «       |«      }|j	                  |«       |S )an  A general quantization scheme is being developed in `tf.contrib.quantize`.

  Consider using that instead, though since it is in the tf.contrib namespace,
  it is not subject to backward compatibility guarantees.

  Args:
    input_graph: A `GraphDef`.
    num_bits: The number of bits for quantize training.

  Returns:
    The graph with quantize training done.
  )r   ÚGraphDefr   ÚSerializeToStringÚParseFromString)Úinput_graphÚnum_bitsÚgraphÚresult_graph_strings       ú\/home/dcms/DCMS/lib/python3.12/site-packages/tensorflow/python/training/quantize_training.pyÚ do_quantize_training_on_graphdefr      sA   € ô$ ×
Ñ
Ó
€%Ü:Ø×#Ñ#Ó% xó1Ðð ×ÑÐ+Ô,Ø	€,ó    )Ú__doc__Útensorflow.core.frameworkr   Ú+tensorflow.python._pywrap_quantize_trainingr   Útensorflow.python.utilr   Ú tensorflow.python.util.tf_exportr   Ú
deprecatedr   © r   r   ú<module>r      sR   ðñ (Ý /Ý ZÝ .Ý 6ð €×ÑØØJóLñ Ð7Ð8Ô9ñó :óLñr   