o
    ?e                     @   s  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
 ddlmZ ddlmZ dd	lmZ dd
lmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZm Z  dndej!ej" fddZ#ede$e#Z%dej!ej" fddZ&dndej!ej" dej!ej' dej!ej' dej!ej' dej!ej' f
ddZ(ede$e(Z)dej!ej" dej!ej' dej!ej' dej!ej' dej!ej' f
ddZ*dndej!ej" dej!ej' d ej!ej+ d!ej!ej+ d"ej!ej' f
d#d$Z,ed%e$e,Z-dej!ej" dej!ej' d ej!ej+ d!ej!ej+ d"ej!ej' f
d&d'Z.dndej!ej" fd(d)Z/ed*e$e/Z0dej!ej" fd+d,Z1dndej!ej" d-ej!ej' fd.d/Z2ed0e$e2Z3dej!ej" d-ej!ej' fd1d2Z4dod4e5d5e5d6ej!ej" fd7d8Z6ed9e$e6Z7d4e5d5e5d6ej!ej" fd:d;Z8dpdej!ej" d=ej!ej9 d>ej!ej' d?ej!ej: d@ej!ej: dAe;fdBdCZ<edDe$e<Z=dej!ej" d=ej!ej9 d>ej!ej' d?ej!ej: d@ej!ej: dAe;fdEdFZ>dndej!ej" d=ej!ej9 d?ej!ej' fdGdHZ?edIe$e?Z@dej!ej" d=ej!ej9 d?ej!ej' fdJdKZAedLejBejCej:ejDejEejFej+ej9ejGejHejIejJejKZLdndej!ej" d=ej!ej9 d>ej!ej' dMej!eL fdNdOZMedPe$eMZNdej!ej" d=ej!ej9 d>ej!ej' dMej!eL fdQdRZOedSej:ejDejEejKZPdpdej!ej" d=ej!ej9 d>ej!ej' d?ej!eP dTej!ejK dUe;fdVdWZQedXe$eQZRdej!ej" d=ej!ej9 d>ej!ej' d?ej!eP dTej!ejK dUe;fdYdZZSdndej!ej" d=ej!ej9 d?ej!ej' fd[d\ZTed]e$eTZUdej!ej" d=ej!ej9 d?ej!ej' fd^d_ZVed`ejBej:ejDejEejFej+ej9ejGejHejIejJejKZWdndej!ej" d=ej!ej9 d>ej!ej' daej!eW fdbdcZXedde$eXZYdej!ej" d=ej!ej9 d>ej!ej' daej!eW fdedfZZedgejBejCej[ej\ej]ej:ejDejEejFej+ej9ejGej^ej_ej`ejaejbej"ej'ejHejIejJejKejcZddndej!ej" d=ej!ej9 d?ej!ed d>ej!ej' dhej!ej' f
didjZeedke$eeZfdej!ej" d=ej!ej9 d?ej!ed d>ej!ej' dhej!ej' f
dldmZgdS )qzUPython wrappers around TensorFlow ops.

This file is MACHINE GENERATED! Do not edit.
    N)
pywrap_tfe)context)core)execute)dtypes)annotation_types)op_def_registry)ops)op_def_library)deprecated_endpoints)dispatch)	tf_export)TypeVarListwriterc           	   
   C      t j pt  }|j}|jrNzt|d|| }|W S  tjy1 } zt	|| W Y d}~nd}~w tj
y:   Y nw zt| ||dW S  tjyM   Y nw tjd| |d\}}}}|S )TODO: add doc.

  Args:
    writer: A `Tensor` of type `resource`.
    name: A name for the operation (optional).

  Returns:
    The created Operation.
  CloseSummaryWriterNnamectxr   r   )_contextr   _thread_local_datais_eagerr   TFE_Py_FastPathExecute_core_NotOkStatusException_opsraise_from_not_ok_status_FallbackException#close_summary_writer_eager_fallback_SymbolicException_op_def_library_apply_op_helper	r   r   _ctxtld_resulte__op_outputs r-   f/home/www/facesmatcher.com/pyenv/lib/python3.10/site-packages/tensorflow/python/ops/gen_summary_ops.pyclose_summary_writer   2   
r/   zraw_ops.CloseSummaryWriterc                 C   6   t | tj} | g}d }tjdd||||d}d }|S )Ns   CloseSummaryWriterr   inputsattrsr   r   r   convert_to_tensor_dtypesresource_executer   r   r   r   _inputs_flat_attrsr(   r-   r-   r.   r!   9      
r!   db_uriexperiment_namerun_name	user_namec              
   C      t j pt  }|j}|jrVzt|d|| ||||}|W S  tjy5 }	 zt	|	| W Y d}	~	nd}	~	w tj
y>   Y nw zt| ||||||dW S  tjyU   Y nw tjd| |||||d\}
}
}}|S )aM  TODO: add doc.

  Args:
    writer: A `Tensor` of type `resource`.
    db_uri: A `Tensor` of type `string`.
    experiment_name: A `Tensor` of type `string`.
    run_name: A `Tensor` of type `string`.
    user_name: A `Tensor` of type `string`.
    name: A name for the operation (optional).

  Returns:
    The created Operation.
  CreateSummaryDbWriterNr   )r   r>   r?   r@   rA   r   )r   r   r   r   r   r   r   r   r   r   r    'create_summary_db_writer_eager_fallbackr"   r#   r$   )r   r>   r?   r@   rA   r   r&   r'   r(   r)   r*   r+   r,   r-   r-   r.   create_summary_db_writerC   s<   rE   zraw_ops.CreateSummaryDbWriterc           
      C   sv   t | tj} t |tj}t |tj}t |tj}t |tj}| ||||g}d }tjdd||||d}	d }	|	S )Ns   CreateSummaryDbWriterr   r2   r   r6   r7   r8   stringr9   r   )
r   r>   r?   r@   rA   r   r   r;   r<   r(   r-   r-   r.   rD   m   s   
rD   logdir	max_queueflush_millisfilename_suffixc              
   C   rB   )aO  TODO: add doc.

  Args:
    writer: A `Tensor` of type `resource`.
    logdir: A `Tensor` of type `string`.
    max_queue: A `Tensor` of type `int32`.
    flush_millis: A `Tensor` of type `int32`.
    filename_suffix: A `Tensor` of type `string`.
    name: A name for the operation (optional).

  Returns:
    The created Operation.
  CreateSummaryFileWriterNr   )r   rH   rI   rJ   rK   r   )r   r   r   r   r   r   r   r   r   r   r    )create_summary_file_writer_eager_fallbackr"   r#   r$   )r   rH   rI   rJ   rK   r   r&   r'   r(   r)   r*   r+   r,   r-   r-   r.   create_summary_file_writer{   s<   rN   zraw_ops.CreateSummaryFileWriterc           
      C   sv   t | tj} t |tj}t |tj}t |tj}t |tj}| ||||g}d }tjdd||||d}	d }	|	S )Ns   CreateSummaryFileWriterr   r2   )r   r6   r7   r8   rG   int32r9   r   )
r   rH   rI   rJ   rK   r   r   r;   r<   r(   r-   r-   r.   rM      s   rM   c           	   
   C   r   )r   FlushSummaryWriterNr   r   )r   r   r   r   r   r   r   r   r   r   r    #flush_summary_writer_eager_fallbackr"   r#   r$   r%   r-   r-   r.   flush_summary_writer   r0   rR   zraw_ops.FlushSummaryWriterc                 C   r1   )Ns   FlushSummaryWriterr   r2   r5   r:   r-   r-   r.   rQ      r=   rQ   eventc           
   
   C   s   t j pt  }|j}|jrPzt|d|| |}|W S  tjy2 } zt	|| W Y d}~nd}~w tj
y;   Y nw z	t| |||dW S  tjyO   Y nw tjd| ||d\}}}}	|S )zTODO: add doc.

  Args:
    writer: A `Tensor` of type `resource`.
    event: A `Tensor` of type `string`.
    name: A name for the operation (optional).

  Returns:
    The created Operation.
  ImportEventNr   )r   rS   r   )r   r   r   r   r   r   r   r   r   r   r    import_event_eager_fallbackr"   r#   r$   )
r   rS   r   r&   r'   r(   r)   r*   r+   r,   r-   r-   r.   import_event   s2   
rV   zraw_ops.ImportEventc                 C   sF   t | tj} t |tj}| |g}d }tjdd||||d}d }|S )Ns   ImportEventr   r2   rF   )r   rS   r   r   r;   r<   r(   r-   r-   r.   rU     s   
rU    shared_name	containerreturnc              
   C   s:  t j pt  }|j}|jrRzt|d|d| d|}|W S  tjy4 } zt	|| W Y d}~nd}~w tj
y=   Y nw z	t| |||dW S  tjyQ   Y nw | du rXd} t| d} |du rdd}t|d}tjd| ||d\}}}}	|	dd }t rd|dd|df}
|j}td||
| |\}|S )zTODO: add doc.

  Args:
    shared_name: An optional `string`. Defaults to `""`.
    container: An optional `string`. Defaults to `""`.
    name: A name for the operation (optional).

  Returns:
    A `Tensor` of type `resource`.
  SummaryWriterrX   rY   N)rX   rY   r   r   rW   )rX   rY   r   )r   r   r   r   r   r   r   r   r   r   r    summary_writer_eager_fallbackr"   r9   make_strr#   r$   must_record_gradientZget_attrr3   record_gradient)rX   rY   r   r&   r'   r(   r)   r*   r+   r,   r<   r;   r-   r-   r.   summary_writer  sV   r`   zraw_ops.SummaryWriterc                 C   sx   | d u rd} t | d} |d u rd}t |d}g }d| d|f}t jdd||||d}t  r7t d||| |\}|S )NrW   rX   rY   s   SummaryWriter   r2   r[   )r9   r]   r   r^   r_   )rX   rY   r   r   r;   r<   r(   r-   r-   r.   r\   ?  s"   
r\      steptagtensorsample_ratemax_outputsc                 C      t j pt  }|j}|jrYzt|d|| ||||d|
}	|	W S  tjy7 }
 zt	|
| W Y d}
~
nd}
~
w tj
y@   Y nw zt| |||||||dW S  tjyX   Y nw |du r_d}t|d}tjd| ||||||d\}}}}|S )a  Writes an audio summary.

  Writes encoded audio summary `tensor` at `step` with `tag` using summary `writer`.
  `sample_rate` is the audio sample rate is Hz.

  Args:
    writer: A `Tensor` of type `resource`.
    step: A `Tensor` of type `int64`.
    tag: A `Tensor` of type `string`.
    tensor: A `Tensor` of type `float32`.
    sample_rate: A `Tensor` of type `float32`.
    max_outputs: An optional `int` that is `>= 1`. Defaults to `3`.
    name: A name for the operation (optional).

  Returns:
    The created Operation.
  WriteAudioSummaryrg   N)rg   r   r   rb   )r   rc   rd   re   rf   rg   r   )r   r   r   r   r   r   r   r   r   r   r    "write_audio_summary_eager_fallbackr"   r9   make_intr#   r$   )r   rc   rd   re   rf   rg   r   r&   r'   r(   r)   r*   r+   r,   r-   r-   r.   write_audio_summaryQ  s@   
rl   zraw_ops.WriteAudioSummaryc                 C   s   |d u rd}t |d}t| tj} t|tj}t|tj}t|tj}t|tj}| ||||g}d|f}	t j	dd||	||d}
d }
|
S )Nrb   rg   s   WriteAudioSummaryr   r2   )
r9   rk   r   r6   r7   r8   int64rG   float32r   )r   rc   rd   re   rf   rg   r   r   r;   r<   r(   r-   r-   r.   rj     s   
rj   c              
   C      t j pt  }|j}|jrRzt|d|| ||}|W S  tjy3 } zt	|| W Y d}~nd}~w tj
y<   Y nw z
t| ||||dW S  tjyQ   Y nw tjd| |||d\}}}	}
|	S )a9  Writes a graph summary.

  Writes TensorFlow graph `tensor` at `step` using summary `writer`.

  Args:
    writer: A `Tensor` of type `resource`.
    step: A `Tensor` of type `int64`.
    tensor: A `Tensor` of type `string`.
    name: A name for the operation (optional).

  Returns:
    The created Operation.
  WriteGraphSummaryNr   r   rc   re   r   )r   r   r   r   r   r   r   r   r   r   r    "write_graph_summary_eager_fallbackr"   r#   r$   r   rc   re   r   r&   r'   r(   r)   r*   r+   r,   r-   r-   r.   write_graph_summary  4   
rt   zraw_ops.WriteGraphSummaryc                 C   V   t | tj} t |tj}t |tj}| ||g}d }tjdd||||d}d }|S )Ns   WriteGraphSummaryr   r2   r   r6   r7   r8   rm   rG   r9   r   r   rc   re   r   r   r;   r<   r(   r-   r-   r.   rr        

rr   TV_WriteHistogramSummary_Tvaluesc              
   C      t j pt  }|j}|jrTzt|d|| |||}|W S  tjy4 } zt	|| W Y d}~nd}~w tj
y=   Y nw zt| |||||dW S  tjyS   Y nw tjd| ||||d\}	}	}
}|
S )a  Writes a histogram summary.

  Writes histogram `values` at `step` with `tag` using summary `writer`.

  Args:
    writer: A `Tensor` of type `resource`.
    step: A `Tensor` of type `int64`.
    tag: A `Tensor` of type `string`.
    values: A `Tensor`. Must be one of the following types: `float32`, `float64`, `int32`, `uint8`, `int16`, `int8`, `int64`, `bfloat16`, `uint16`, `half`, `uint32`, `uint64`, `bool`.
    name: A name for the operation (optional).

  Returns:
    The created Operation.
  WriteHistogramSummaryNr   )r   rc   rd   r{   r   )r   r   r   r   r   r   r   r   r   r   r    &write_histogram_summary_eager_fallbackr"   r#   r$   )r   rc   rd   r{   r   r&   r'   r(   r)   r*   r+   r,   r-   r-   r.   write_histogram_summary  s4   r   zraw_ops.WriteHistogramSummaryc           
      C   s   t |g|tjtjtjtjtjtjtj	tj
tjtjtjtjtjgtj\}\}t| tj} t|tj	}t|tj}| |||g}d|f}t jdd||||d}	d }	|	S )NTs   WriteHistogramSummaryr   r2   )r9   args_to_matching_eagerr7   rn   float64rO   uint8int16int8rm   bfloat16uint16halfuint32uint64boolr   r6   r8   rG   r   )
r   rc   rd   r{   r   r   _attr_Tr;   r<   r(   r-   r-   r.   r~     s   N
r~   TV_WriteImageSummary_T	bad_color
max_imagesc                 C   rh   )aB  Writes an image summary.

  Writes image `tensor` at `step` with `tag` using summary `writer`.
  `tensor` is image with shape [height, width, channels].

  Args:
    writer: A `Tensor` of type `resource`.
    step: A `Tensor` of type `int64`.
    tag: A `Tensor` of type `string`.
    tensor: A `Tensor`. Must be one of the following types: `uint8`, `float64`, `float32`, `half`.
    bad_color: A `Tensor` of type `uint8`.
    max_images: An optional `int` that is `>= 1`. Defaults to `3`.
    name: A name for the operation (optional).

  Returns:
    The created Operation.
  WriteImageSummaryr   N)r   r   r   rb   )r   rc   rd   re   r   r   r   )r   r   r   r   r   r   r   r   r   r   r    "write_image_summary_eager_fallbackr"   r9   rk   r#   r$   )r   rc   rd   re   r   r   r   r&   r'   r(   r)   r*   r+   r,   r-   r-   r.   write_image_summary  s@   
r   zraw_ops.WriteImageSummaryc                 C   s   |d u rd}t |d}t |g|tjtjtjtjgtj\}\}t	| tj
} t	|tj}t	|tj}t	|tj}| ||||g}	d|d|f}
t jdd|	|
||d}d }|S )Nrb   r   r   s   WriteImageSummaryr   r2   )r9   rk   r   r7   r   r   rn   r   r   r6   r8   rm   rG   r   )r   rc   rd   re   r   r   r   r   r   r;   r<   r(   r-   r-   r.   r   ,  s   *
r   c              
   C   ro   )aG  Writes a serialized proto summary.

  Writes `tensor`, a serialized proto at `step` using summary `writer`.

  Args:
    writer: A `Tensor` of type `resource`.
    step: A `Tensor` of type `int64`.
    tensor: A `Tensor` of type `string`.
    name: A name for the operation (optional).

  Returns:
    The created Operation.
  WriteRawProtoSummaryNr   rq   )r   r   r   r   r   r   r   r   r   r   r    &write_raw_proto_summary_eager_fallbackr"   r#   r$   rs   r-   r-   r.   write_raw_proto_summary=  ru   r   zraw_ops.WriteRawProtoSummaryc                 C   rv   )Ns   WriteRawProtoSummaryr   r2   rw   rx   r-   r-   r.   r   c  ry   r   TV_WriteScalarSummary_Tvaluec              
   C   r|   )a  Writes a scalar summary.

  Writes scalar `value` at `step` with `tag` using summary `writer`.

  Args:
    writer: A `Tensor` of type `resource`.
    step: A `Tensor` of type `int64`.
    tag: A `Tensor` of type `string`.
    value: A `Tensor`. Must be one of the following types: `float32`, `float64`, `int32`, `uint8`, `int16`, `int8`, `int64`, `bfloat16`, `uint16`, `half`, `uint32`, `uint64`.
    name: A name for the operation (optional).

  Returns:
    The created Operation.
  WriteScalarSummaryNr   )r   rc   rd   r   r   )r   r   r   r   r   r   r   r   r   r   r    #write_scalar_summary_eager_fallbackr"   r#   r$   )r   rc   rd   r   r   r&   r'   r(   r)   r*   r+   r,   r-   r-   r.   write_scalar_summaryq  s4   
r   zraw_ops.WriteScalarSummaryc           
      C   s   t |g|tjtjtjtjtjtjtj	tj
tjtjtjtjg\}\}t| tj} t|tj	}t|tj}| |||g}d|f}t jdd||||d}	d }	|	S )Nr   s   WriteScalarSummaryr   r2   )r9   r   r7   rn   r   rO   r   r   r   rm   r   r   r   r   r   r   r6   r8   rG   r   )
r   rc   rd   r   r   r   r   r;   r<   r(   r-   r-   r.   r     s   F
r   TV_WriteSummary_Tsummary_metadatac              
   C   rB   )a|  Writes a tensor summary.

  Writes `tensor` at `step` with `tag` using summary `writer`.

  Args:
    writer: A `Tensor` of type `resource`.
    step: A `Tensor` of type `int64`.
    tensor: A `Tensor`.
    tag: A `Tensor` of type `string`.
    summary_metadata: A `Tensor` of type `string`.
    name: A name for the operation (optional).

  Returns:
    The created Operation.
  WriteSummaryNr   )r   rc   re   rd   r   r   )r   r   r   r   r   r   r   r   r   r   r    write_summary_eager_fallbackr"   r#   r$   )r   rc   re   rd   r   r   r&   r'   r(   r)   r*   r+   r,   r-   r-   r.   write_summary  s6   
r   zraw_ops.WriteSummaryc                 C   s   t |g|g \}\}t| tj} t|tj}t|tj}t|tj}| ||||g}d|f}	t jdd||	||d}
d }
|
S )Nr   s   WriteSummaryr   r2   )	r9   r   r   r6   r7   r8   rm   rG   r   )r   rc   re   rd   r   r   r   r   r;   r<   r(   r-   r-   r.   r     s   
r   )N)rW   rW   N)rb   N)h__doc__collectionsZtensorflow.pythonr   Ztensorflow.python.eagerr   r   r   r   r   r9   Ztensorflow.python.frameworkr   r7   Ztensorflow.security.fuzzing.pyr   Z_atypesr   Z_op_def_registryr	   r   r
   r#   Z"tensorflow.python.util.deprecationr   Ztensorflow.python.utilr   	_dispatchZ tensorflow.python.util.tf_exportr   typingr   r   ZTensorFuzzingAnnotationResourcer/   Z	to_raw_opr   r!   StringrE   rC   rD   ZInt32rN   rL   rM   rR   rP   rQ   rV   rT   rU   strr`   r[   r\   ZInt64ZFloat32intrl   ri   rj   rt   rp   rr   ZBFloat16ZBoolZFloat64ZHalfZInt16ZInt8ZUInt16ZUInt32ZUInt64ZUInt8rz   r   r}   r~   r   r   r   r   r   r   r   r   r   r   r   Z
Complex128Z	Complex64ZFloat16ZQInt16ZQInt32ZQInt8ZQUInt16ZQUInt8ZVariantr   r   r   r   r-   r-   r-   r.   <module>   st    H
'FH'F$
" 0L-J0#.<:$8J-H0#.8:$8hF&H