
    AVh|                     Z   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 m!Z! ddl"m#Z# d`de#e!ejH                  f   fdZ%  ed       ejL                  e%            Z'de#e!ejH                  f   fdZ(d`de#e!ejH                  f   de#e!ejR                  f   de#e!ejR                  f   de#e!ejR                  f   de#e!ejR                  f   f
dZ*  ed       ejL                  e*            Z+de#e!ejH                  f   de#e!ejR                  f   de#e!ejR                  f   de#e!ejR                  f   de#e!ejR                  f   f
dZ,d`de#e!ejH                  f   de#e!ejR                  f   de#e!ejZ                  f   de#e!ejZ                  f   de#e!ejR                  f   f
d Z.  ed!       ejL                  e.            Z/de#e!ejH                  f   de#e!ejR                  f   de#e!ejZ                  f   de#e!ejZ                  f   de#e!ejR                  f   f
d"Z0d`de#e!ejH                  f   fd#Z1  ed$       ejL                  e1            Z2de#e!ejH                  f   fd%Z3d`de#e!ejH                  f   d&e#e!ejR                  f   fd'Z4  ed(       ejL                  e4            Z5de#e!ejH                  f   d&e#e!ejR                  f   fd)Z6dad*e7d+e7d,e#e!ejH                  f   fd-Z8  ed.       ejL                  e8            Z9d*e7d+e7d,e#e!ejH                  f   fd/Z:dbde#e!ejH                  f   d0e#e!ejv                  f   d1e#e!ejR                  f   d2e#e!ejx                  f   d3e#e!ejx                  f   d4e=fd5Z>  ed6       ejL                  e>            Z?de#e!ejH                  f   d0e#e!ejv                  f   d1e#e!ejR                  f   d2e#e!ejx                  f   d3e#e!ejx                  f   d4e=fd7Z@d`de#e!ejH                  f   d0e#e!ejv                  f   d2e#e!ejR                  f   fd8ZA  ed9       ejL                  eA            ZBde#e!ejH                  f   d0e#e!ejv                  f   d2e#e!ejR                  f   fd:ZC ed;d<d=d>d?d@dAdBdCdDdEdFdGdH      ZDd`de#e!ejH                  f   d0e#e!ejv                  f   d1e#e!ejR                  f   dIe#e!eDf   fdJZE  edK       ejL                  eE            ZFde#e!ejH                  f   d0e#e!ejv                  f   d1e#e!ejR                  f   dIe#e!eDf   fdLZG edMd>d?d@dH      ZHdbde#e!ejH                  f   d0e#e!ejv                  f   d1e#e!ejR                  f   d2e#e!eHf   dNe#e!ej                  f   dOe=fdPZJ  edQ       ejL                  eJ            ZKde#e!ejH                  f   d0e#e!ejv                  f   d1e#e!ejR                  f   d2e#e!eHf   dNe#e!ej                  f   dOe=fdRZLd`de#e!ejH                  f   d0e#e!ejv                  f   d2e#e!ejR                  f   fdSZM  edT       ejL                  eM            ZNde#e!ejH                  f   d0e#e!ejv                  f   d2e#e!ejR                  f   fdUZO edVd<d>d?d@dAdBdCdDdEdFdGdH      ZPd`de#e!ejH                  f   d0e#e!ejv                  f   d1e#e!ejR                  f   dWe#e!ePf   fdXZQ  edY       ejL                  eQ            ZRde#e!ejH                  f   d0e#e!ejv                  f   d1e#e!ejR                  f   dWe#e!ePf   fdZZS ed[ ZTd`de#e!ejH                  f   d0e#e!ejv                  f   d2e#e!eTf   d1e#e!ejR                  f   d\e#e!ejR                  f   f
d]ZU  ed^       ejL                  eU            ZVde#e!ejH                  f   d0e#e!ejv                  f   d2e#e!eTf   d1e#e!ejR                  f   d\e#e!ejR                  f   f
d_ZWy)czUPython 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Any)	Annotatedwriterc                    t         j                   xs t        j                         }|j                  }|j                  r	 t	        j
                  |d||       }|S t        j                  d| |      \  }}}}|S # t        j                  $ r }t        j                  ||       Y d}~nd}~wt        j                  $ r Y nw xY w	 t        | ||      S # t        j                  $ r Y w xY w)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_outputss	            U/home/dcms/DCMS/lib/python3.12/site-packages/tensorflow/python/ops/gen_summary_ops.pyclose_summary_writerr1           
			0h..0$#\\11"D&2gn (88V$8!QX	* && -
##At,,## 
0
t' '## 
0    A9 9C B''C ?C C C('C(zraw_ops.CloseSummaryWriterc                     t        j                  | t        j                        } | g}d }t	        j
                  dd||||      }d }|S )Ns   CloseSummaryWriterr   inputsattrsr   r   r!   convert_to_tensor_dtypesresource_executer   r   r   r   _inputs_flat_attrsr+   s         r0   r$   r$   :   N    !!&'*:*:;&,&2Al#)s?''	.    db_uriexperiment_namerun_name	user_namec           
         t         j                   xs t        j                         }|j                  }|j                  r	 t	        j
                  |d|| ||||      }|S t        j                  d| |||||      \  }
}
}}|S # t        j                  $ r }	t        j                  |	|       Y d}	~	nd}	~	wt        j                  $ r Y nw xY w	 t        | ||||||      S # t        j                  $ r Y w xY w)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   rB   rC   rD   rE   r   )r   r   r   r   r   r   r   r    r!   r"   r#   'create_summary_db_writer_eager_fallbackr%   r&   r'   )r   rB   rC   rD   rE   r   r)   r*   r+   r,   r-   r.   r/   s                r0   create_summary_db_writerrI   D   s
    
			0h..0$#\\11%tVV_)g n (88v1@*2i&*	,!QX
 
*! && -
##At,,## 
4
&/8YT  ## 
0    B CB//CCC C43C4zraw_ops.CreateSummaryDbWriterc                    t        j                  | t        j                        } t        j                  |t        j                        }t        j                  |t        j                        }t        j                  |t        j                        }t        j                  |t        j                        }| ||||g}d }t        j                  dd||||      }	d }	|	S )Ns   CreateSummaryDbWriterr   r5   r!   r9   r:   r;   stringr<   r   )
r   rB   rC   rD   rE   r   r   r>   r?   r+   s
             r0   rH   rH   n   s    !!&'*:*:;&!!&'..9&**?GNNK/##Hgnn=($$Y?)&/8YG,&5q#)s?''	.rA   logdir	max_queueflush_millisfilename_suffixc           
         t         j                   xs t        j                         }|j                  }|j                  r	 t	        j
                  |d|| ||||      }|S t        j                  d| |||||      \  }
}
}}|S # t        j                  $ r }	t        j                  |	|       Y d}	~	nd}	~	wt        j                  $ r Y nw xY w	 t        | ||||||      S # t        j                  $ r Y w xY w)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   rN   rO   rP   rQ   r   )r   r   r   r   r   r   r   r    r!   r"   r#   )create_summary_file_writer_eager_fallbackr%   r&   r'   )r   rN   rO   rP   rQ   r   r)   r*   r+   r,   r-   r.   r/   s                r0   create_summary_file_writerrU   |   s    
			0h..0$#\\11'vvyo'g n (88!&-60<3B	O!QX
 
*! && -
##At,,## 
6
&)\?  ## 
rJ   zraw_ops.CreateSummaryFileWriterc                    t        j                  | t        j                        } t        j                  |t        j                        }t        j                  |t        j
                        }t        j                  |t        j
                        }t        j                  |t        j                        }| ||||g}d }t        j                  dd||||      }	d }	|	S )Ns   CreateSummaryFileWriterr   r5   )r!   r9   r:   r;   rM   int32r<   r   )
r   rN   rO   rP   rQ   r   r   r>   r?   r+   s
             r0   rT   rT      s    !!&'*:*:;&!!&'..9&$$Y>)''gmmD,**?GNNK/&)\?K,&7$0C"&(' '	.rA   c                    t         j                   xs t        j                         }|j                  }|j                  r	 t	        j
                  |d||       }|S t        j                  d| |      \  }}}}|S # t        j                  $ r }t        j                  ||       Y d}~nd}~wt        j                  $ r Y nw xY w	 t        | ||      S # t        j                  $ r Y w xY w)r   FlushSummaryWriterNr   r   )r   r   r   r   r   r   r   r    r!   r"   r#   #flush_summary_writer_eager_fallbackr%   r&   r'   r(   s	            r0   flush_summary_writerr[      r2   r3   zraw_ops.FlushSummaryWriterc                     t        j                  | t        j                        } | g}d }t	        j
                  dd||||      }d }|S )Ns   FlushSummaryWriterr   r5   r8   r=   s         r0   rZ   rZ      r@   rA   eventc                    t         j                   xs t        j                         }|j                  }|j                  r	 t	        j
                  |d|| |      }|S t        j                  d| ||      \  }}}}	|S # t        j                  $ r }t        j                  ||       Y d}~nd}~wt        j                  $ r Y nw xY w	 t        | |||      S # t        j                  $ r Y w xY w)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   r]   r   )r   r   r   r   r   r   r   r    r!   r"   r#   import_event_eager_fallbackr%   r&   r'   )
r   r]   r   r)   r*   r+   r,   r-   r.   r/   s
             r0   import_eventra      s     
			0h..0$#\\11mT652gn (88fE>!QX	* && -
##At,,## 
(
%d. .## 
s0    A; ;CB))CCC C+*C+zraw_ops.ImportEventc                     t        j                  | t        j                        } t        j                  |t        j                        }| |g}d }t        j                  dd||||      }d }|S )Ns   ImportEventr   r5   rL   )r   r]   r   r   r>   r?   r+   s          r0   r`   r`     se    !!&'*:*:;&

 
 
7%%,&^Q|#)s?''	.rA   shared_name	containerreturnc           	         t         j                   xs t        j                         }|j                  }|j                  r	 t	        j
                  |d|d| d|      }|S | d} t        j                  | d      } |d}t        j                  |d      }t        j                   d| ||      \  }}}}	|	dd }t        j"                         rHd|j%                  d      d|j%                  d      f}
|j&                  }t        j(                  d||
|       |\  }|S # t        j                  $ r }t        j                  ||       Y d}~nd}~wt        j                  $ r Y nw xY w	 t        | |||      S # t        j                  $ r Y )w xY w)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`.
  SummaryWriterrc   rd   N)rc   rd   r   r    )rc   rd   r   )r   r   r   r   r   r   r   r    r!   r"   r#   summary_writer_eager_fallbackr%   r<   make_strr&   r'   must_record_gradientget_attrr6   record_gradient)rc   rd   r   r)   r*   r+   r,   r-   r.   r/   r?   r>   s               r0   summary_writerrn     s    
			0h..0$#\\11ot]Kg n K!!+}=+I	;7)'88[I"$!QX QK'""$S\\-8+ll;')F::Lvw8('	.7 && -
##At,,## 
*!YTtM M## 
s0    D E)EEE!E0 0FFzraw_ops.SummaryWriterc                    | d} t        j                  | d      } |d}t        j                  |d      }g }d| d|f}t        j                  dd||||      }t        j                         rt        j                  d|||       |\  }|S )Nrh   rc   rd   s   SummaryWriter   r5   rg   )r<   rj   r   rk   rm   )rc   rd   r   r   r>   r?   r+   s          r0   ri   ri   @  s    K!!+}=+I	;7),;Y?&-q#)s?'""$vw8('	.rA   steptagtensorsample_ratemax_outputsc                 *   t         j                   xs t        j                         }|j                  }|j                  r!	 t	        j
                  |d|| ||||d|
      }	|	S |d}t        j                  |d      }t        j                   d| ||||||      \  }}}}|S # t        j                  $ r }
t        j                  |
|       Y d}
~
nd}
~
wt        j                  $ r Y nw xY w	 t        | |||||||      S # t        j                  $ r Y w xY w)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.
  WriteAudioSummaryru   N)ru   r   r      )r   rq   rr   rs   rt   ru   r   )r   r   r   r   r   r   r   r    r!   r"   r#   "write_audio_summary_eager_fallbackr%   r<   make_intr&   r'   )r   rq   rr   rs   rt   ru   r   r)   r*   r+   r,   r-   r.   r/   s                 r0   write_audio_summaryr{   R  s.   $ 
			0h..0$#\\11!4sF]K1g n K!!+}=+'88F3v)4+"&(!QX 
*% && -
##At,,## 
/
$V[k  ## 
0    B C%1CC%$C%)C< <DDzraw_ops.WriteAudioSummaryc                    |d}t        j                  |d      }t        j                  | t        j
                        } t        j                  |t        j                        }t        j                  |t        j                        }t        j                  |t        j                        }t        j                  |t        j                        }| ||||g}d|f}	t        j                  dd||	||      }
d }
|
S )Nrx   ru   s   WriteAudioSummaryr   r5   )
r<   rz   r!   r9   r:   r;   int64rM   float32r   )r   rq   rr   rs   rt   ru   r   r   r>   r?   r+   s              r0   ry   ry     s    K!!+}=+!!&'*:*:;&			gmm	4$sGNN3#!!&'//:&&&{GOOD+$V[9,;'&11\#)s?''	.rA   c                    t         j                   xs t        j                         }|j                  }|j                  r	 t	        j
                  |d|| ||      }|S t        j                  d| |||      \  }}}	}
|	S # t        j                  $ r }t        j                  ||       Y d}~nd}~wt        j                  $ r Y nw xY w	 t        | ||||      S # t        j                  $ r Y w xY w)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   rq   rs   r   )r   r   r   r   r   r   r   r    r!   r"   r#   "write_graph_summary_eager_fallbackr%   r&   r'   r   rq   rs   r   r)   r*   r+   r,   r-   r.   r/   s              r0   write_graph_summaryr     s     
			0h..0$#\\11!4v?gn (88Ff"&(!QX 
* && -
##At,,## 
/
$Tt5 5## 
0    A= =CB++CCC C.-C.zraw_ops.WriteGraphSummaryc                 &   t        j                  | t        j                        } t        j                  |t        j                        }t        j                  |t        j
                        }| ||g}d }t        j                  dd||||      }d }|S )Ns   WriteGraphSummaryr   r5   r!   r9   r:   r;   r~   rM   r<   r   r   rq   rs   r   r   r>   r?   r+   s           r0   r   r     s    !!&'*:*:;&			gmm	4$!!&'..9&$',&11\#)s?''	.rA   TV_WriteHistogramSummary_T_atypes.BFloat16_atypes.Bool_atypes.Float32_atypes.Float64_atypes.Half_atypes.Int16_atypes.Int32_atypes.Int64_atypes.Int8_atypes.UInt16_atypes.UInt32_atypes.UInt64_atypes.UInt8valuesc           	         t         j                   xs t        j                         }|j                  }|j                  r	 t	        j
                  |d|| |||      }|S t        j                  d| ||||      \  }	}	}
}|
S # t        j                  $ r }t        j                  ||       Y d}~nd}~wt        j                  $ r Y nw xY w	 t        | |||||      S # t        j                  $ r Y w xY w)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   rq   rr   r   r   )r   r   r   r   r   r   r   r    r!   r"   r#   &write_histogram_summary_eager_fallbackr%   r&   r'   )r   rq   rr   r   r   r)   r*   r+   r,   r-   r.   r/   s               r0   write_histogram_summaryr     s     
			0h..0$#\\11%tVT3Hgn (88Ts(.T;!QX 
* && -
##At,,## 
3
$V$D: :## 
0    A? ?CB--CC
C C10C1zraw_ops.WriteHistogramSummaryc                 
   t        j                  |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!        j"                  | t        j$                        } t!        j"                  |t        j                        }t!        j"                  |t        j&                        }| |||g}d|f}t        j(                  dd||||      }	d }	|	S )NTs   WriteHistogramSummaryr   r5   )r<   args_to_matching_eagerr:   r   float64rW   uint8int16int8r~   bfloat16uint16halfuint32uint64boolr!   r9   r;   rM   r   )
r   rq   rr   r   r   r   _attr_Tr>   r?   r+   s
             r0   r   r     s   66xwX_XgXgipivivx  yF  yF  HO  HU  HU  W^  Wc  Wc  el  er  er  t{  tD  tD  FM  FT  FT  V]  Vb  Vb  dk  dr  dr  t{  tB  tB  DK  DP  DP  GS  U\  Ud  Ud  e'9F!!&'*:*:;&			gmm	4$sGNN3#$V,,>&5q#)s?''	.rA   TV_WriteImageSummary_T	bad_color
max_imagesc                 *   t         j                   xs t        j                         }|j                  }|j                  r!	 t	        j
                  |d|| ||||d|
      }	|	S |d}t        j                  |d      }t        j                   d| ||||||      \  }}}}|S # t        j                  $ r }
t        j                  |
|       Y d}
~
nd}
~
wt        j                  $ r Y nw xY w	 t        | |||||||      S # t        j                  $ r Y w xY w)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   rx   )r   rq   rr   rs   r   r   r   )r   r   r   r   r   r   r   r    r!   r"   r#   "write_image_summary_eager_fallbackr%   r<   rz   r&   r'   )r   rq   rr   rs   r   r   r   r)   r*   r+   r,   r-   r.   r/   s                 r0   write_image_summaryr     s.   $ 
			0h..0$#\\11!4sFIj"g n J  \:*'88F3v'0Z"&(!QX 
*% && -
##At,,## 
/
$VY:  ## 
r|   zraw_ops.WriteImageSummaryc                 ~   |d}t        j                  |d      }t        j                  |g|t        j                  t        j
                  t        j                  t        j                  gt        j                        \  }\  }t        j                  | t        j                        } t        j                  |t        j                        }t        j                  |t        j                        }t        j                  |t        j                        }| ||||g}	d|d|f}
t        j                  dd|	|
||      }d }|S )Nrx   r   r   s   WriteImageSummaryr   r5   )r<   rz   r   r:   r   r   r   r   r!   r9   r;   r~   rM   r   )r   rq   rr   rs   r   r   r   r   r   r>   r?   r+   s               r0   r   r   -  s"   J  \:*66xw}}V]VeVegngvgvx  yE  yE  GH  JQ  JY  JY  Z'9F!!&'*:*:;&			gmm	4$sGNN3#$$Y>)$VY7,*c73&11\#)s?''	.rA   c                    t         j                   xs t        j                         }|j                  }|j                  r	 t	        j
                  |d|| ||      }|S t        j                  d| |||      \  }}}	}
|	S # t        j                  $ r }t        j                  ||       Y d}~nd}~wt        j                  $ r Y nw xY w	 t        | ||||      S # t        j                  $ r Y w xY w)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   r   )r   r   r   r   r   r   r   r    r!   r"   r#   &write_raw_proto_summary_eager_fallbackr%   r&   r'   r   s              r0   write_raw_proto_summaryr   >  s     
			0h..0$#\\11$dFD&Bgn (88vD%)+!QX 
* && -
##At,,## 
3
$Tt5 5## 
r   zraw_ops.WriteRawProtoSummaryc                 &   t        j                  | t        j                        } t        j                  |t        j                        }t        j                  |t        j
                        }| ||g}d }t        j                  dd||||      }d }|S )Ns   WriteRawProtoSummaryr   r5   r   r   s           r0   r   r   d  s    !!&'*:*:;&			gmm	4$!!&'..9&$',&4a#)s?''	.rA   TV_WriteScalarSummary_Tvaluec           	         t         j                   xs t        j                         }|j                  }|j                  r	 t	        j
                  |d|| |||      }|S t        j                  d| ||||      \  }	}	}
}|
S # t        j                  $ r }t        j                  ||       Y d}~nd}~wt        j                  $ r Y nw xY w	 t        | |||||      S # t        j                  $ r Y w xY w)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   rq   rr   r   r   )r   r   r   r   r   r   r   r    r!   r"   r#   #write_scalar_summary_eager_fallbackr%   r&   r'   )r   rq   rr   r   r   r)   r*   r+   r,   r-   r.   r/   s               r0   write_scalar_summaryr   r  s     
			0h..0$#\\11"D&$UDgn (88V$Cu#')!QX 
* && -
##At,,## 
0
$U49 9## 
r   zraw_ops.WriteScalarSummaryc                    t        j                  |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        j                   | t        j"                        } t        j                   |t        j                        }t        j                   |t        j$                        }| |||g}d|f}t        j&                  dd||||      }	d }	|	S )Nr   s   WriteScalarSummaryr   r5   )r<   r   r:   r   r   rW   r   r   r   r~   r   r   r   r   r   r!   r9   r;   rM   r   )
r   rq   rr   r   r   r   r   r>   r?   r+   s
             r0   r   r     s{   55ugsW__V]VeVegngtgtv}  wD  wD  FM  FS  FS  U\  Ua  Ua  cj  cp  cp  ry  rB  rB  DK  DR  DR  T[  T`  T`  bi  bp  bp  ry  r@  r@  EC  D'8E!!&'*:*:;&			gmm	4$sGNN3#$U+,>&2Al#)s?''	.rA   ) TV_WriteSummary_Tr   r   z_atypes.Complex128z_atypes.Complex64z_atypes.Float16r   r   z_atypes.Float8e4m3b11fnuzz_atypes.Float8e4m3fnz_atypes.Float8e4m3fnuzz_atypes.Float8e5m2z_atypes.Float8e5m2fnuzr   r   r   z_atypes.Int4r   r   z_atypes.QInt16z_atypes.QInt32z_atypes.QInt8z_atypes.QUInt16z_atypes.QUInt8z_atypes.Resourcez_atypes.Stringr   r   z_atypes.UInt4r   r   z_atypes.Variantsummary_metadatac           
         t         j                   xs t        j                         }|j                  }|j                  r	 t	        j
                  |d|| ||||      }|S t        j                  d| |||||      \  }
}
}}|S # t        j                  $ r }	t        j                  |	|       Y d}	~	nd}	~	wt        j                  $ r Y nw xY w	 t        | ||||||      S # t        j                  $ r Y w xY w)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   rq   rs   rr   r   r   )r   r   r   r   r   r   r   r    r!   r"   r#   write_summary_eager_fallbackr%   r&   r'   )r   rq   rs   rr   r   r   r)   r*   r+   r,   r-   r.   r/   s                r0   write_summaryr     s     
			0h..0$#\\11ndFD&#g n (88vDS)9F!QX 
* && -
##At,,## 
)
$%5DdL L## 
rJ   zraw_ops.WriteSummaryc                    t        j                  |g|g       \  }\  }t        j                  | t        j
                        } t        j                  |t        j                        }t        j                  |t        j                        }t        j                  |t        j                        }| ||||g}d|f}	t        j                  dd||	||      }
d }
|
S )Nr   s   WriteSummaryr   r5   )	r<   r   r!   r9   r:   r;   r~   rM   r   )r   rq   rs   rr   r   r   r   r   r>   r?   r+   s              r0   r   r     s    66xbI'9F!!&'*:*:;&			gmm	4$sGNN3#++,<gnnM$-=>,>&_a#)s?''	.rA   )N)rh   rh   N)rx   N)X__doc__collectionstensorflow.pythonr   tensorflow.python.eagerr   r   r   r   r   r<   tensorflow.python.frameworkr   r:   tensorflow.security.fuzzing.pyr   _atypesr	   _op_def_registryr
   r!   r   r&   "tensorflow.python.util.deprecationr   tensorflow.python.utilr   	_dispatch tensorflow.python.util.tf_exportr   typingr   r   r   typing_extensionsr   Resourcer1   	to_raw_opr   r$   StringrI   rG   rH   Int32rU   rS   rT   r[   rY   rZ   ra   r_   r`   strrn   rg   ri   Int64Float32intr{   rw   ry   r   r   r   r   r   r   r   r   UInt8r   r   r   r   r   r   r   r   r   r   r   r   r   r    rA   r0   <module>r      s7  
  6 7 1 7 9 F K 3 I C 8 6 % % '30@0@+@!A < =Y;<^T^^L`=ab 	#w?O?O:O0P &YsG4D4D/D%E &yY\^e^l^lYlOm &  AJ  KN  PW  P^  P^  K^  A_ &  kt  ux  zA  zH  zH  uH  kI &  V_  `c  el  es  es  `s  Vt &N C	"AB>4>>RjCkl Ic7CSCS>S4T ^ghkmtm{m{h{^|   PY  Z]  _f  _m  _m  Zm  Pn   zC  DG  IP  IW  IW  DW  zX   en  or  t{  tB  tB  oB  eC &yg6F6F1F'G &QZ[^`g`n`n[nQo &  }F  GJ  LS  LY  LY  GY  }Z &  js  tw  y@  yF  yF  tF  jG &  Zc  dg  ip  iw  iw  dw  Zx &N G)$EF~t~~VpGqr iWEUEU@U6V `ijmovo}o}j}`~   LU  VY  [b  [h  [h  Vh  Li   yB  CF  HO  HU  HU  CU  yV   ir  sv  x  xF  xF  sF  iG 30@0@+@!A < =Y;<^T^^L`=ab 	#w?O?O:O0P 3(8(8#89 )CQXQ_Q_L_B` > /i-.~t~~l/KL	#w7G7G2G(H QZ[^`g`n`n[nQo .s . .yQTV]VfVfQfGg .` 3	12>4>>.3QRs s R[\_ahaqaq\qRr $,	#w/?/?*? @ ,	RUW^WdWdRdHe ,luvy  |C  |J  |J  wJ  mK ,  U^  _b  dk  ds  ds  _s  Ut ,  CL  MP  RY  Ra  Ra  Ma  Cb ,  ps ,Z ;I9:>4>>J];^_ yg>N>N9N/O W`adfmfsfsasWt   |E  FI  KR  KY  KY  FY  |Z   dm  nq  sz  sB  sB  nB  dC   R[  \_  ah  ap  ap  \p  Rq   @C ""	#w/?/?*? @ "	RUW^WdWdRdHe "oxy|  F  M  M  zM  pN "F ;I9:>4>>J];^_ 	yg>N>N9N/O 	W`adfmfsfsasWt 	  H  IL  NU  N\  N\  I\  ] 	 %%ACUWegx  {L  N\  ^m  o~  @O  Q_  aq  sC  EU  Wf  g #Ic73C3C.C$D #IVY[b[h[hVhLi #pyz}  @G  @N  @N  {N  qO #  Yb  cf  hB  cB  YC #H C	"AB>4>>RiCjk 
9S'BRBR=R3S 
[dehjqjwjwew[x 
  @I  JM  OV  O]  O]  J]  @^ 
  hq  ru  wQ  rQ  hR 
 !!9;LN_ao  rA  B ,	#w/?/?*? @ ,	RUW^WdWdRdHe ,luvy  |C  |J  |J  wJ  mK ,  U^  _b  dz  _z  U{ ,  HQ  RU  W^  Wd  Wd  Rd  He ,  ru ,Z ;I9:>4>>J];^_ yg>N>N9N/O W`adfmfsfsasWt   |E  FI  KR  KY  KY  FY  |Z   dm  nq  sI  nI  dJ   W`  ad  fm  fs  fs  as  Wt   BE ""Ic73C3C.C$D "IVY[b[h[hVhLi "s|  ~A  CJ  CQ  CQ  ~Q  tR "F Ay!?@PgAhi 	9S'BRBR=R3S 	[dehjqjwjwew[x 	  CL  MP  RY  R`  R`  M`  Ca 	 "";=OQbdu  xF  HW  Yh  jy  {I  K[  ]m  o  AP  Q #30@0@+@!A #SVX_XeXeSeIf #mvwz  }D  }K  }K  xK  nL #  U^  _b  d{  _{  U| #H =Y;<^T^^L`=ab 
	#w?O?O:O0P 
XabegngtgtbtXu 
  }F  GJ  LS  LZ  LZ  GZ  }[ 
  dm  nq  sJ  nJ  dK 
   F
 %)C)9)9$9: %)CQXQ^Q^L^B_ %irsv  yJ  tJ  jK %  R[  \_  ah  ao  ao  \o  Rp %  DM  NQ  SZ  Sa  Sa  Na  Db %L 1y/01NO38H8H3H)I QZ[^`g`m`m[mQn   yB  CF  HY  CY  yZ   aj  kn  pw  p~  p~  k~  a   S\  ]`  bi  bp  bp  ]p  Sq rA   