o
    ?eޱ                    @   sr:  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  ej!ej"edd|dej#ej$ fddZ%ede&e%Z'e%j(j)Z*dej#ej$ fddZ+ej!ej"edd|de,fddZ-ede&e-Z.e-j(j)Z/de,fddZ0ej!ej"edd|de1fddZ2ede&e2Z3e2j(j)Z4de1fddZ5ej!ej"ed d|d!d Z6ed"e&e6Z7e6j(j)Z8d#d$ Z9ej!ej"ed%d}de:fd'd%Z;ed(e&e;Z<e;j(j)Z=de:fd)d*Z>ej!ej"ed+g dfd,d+Z?ed-e&e?Z@e?j(j)ZAd.d/ ZBej!ej"ed0d|de:fd1d0ZCed2e&eCZDeCj(j)ZEde:fd3d4ZFej!ej"ed5d|d6d5ZGed7e&eGZHeGj(j)ZId8d9 ZJej!ej"ed:d|deKfd;d:ZLed<e&eLZMeLj(j)ZNdeKfd=d>ZOej!ej"ed?d@dAgdfdBd?ZPedCe&ePZQePj(j)ZRdDdE ZSej!ej"edFd|dGdFZTedHe&eTZUeTj(j)ZVdIdJ ZWedKejXejYejZej[ej\ej$ej]ej^ej_ej`ejaejbejcejdejeejfejgejhejiejjejkejlejmejnZoej!ej"edLd|de ej#eo  dMe ej#eo  fdNdLZpedOe&epZqepj(j)Zrde ej#eo  dMe ej#eo  fdPdQZsej!ej"edRd|de,fdSdRZtedTe&etZuetj(j)Zvde,fdUdVZwej!ej"edWd|dXdWZxedYe&exZyexj(j)ZzdZd[ Z{ej!ej"ed\d|d]d\Z|ed^e&e|Z}e|j(j)Z~d_d` Zej!ej"edad|dbdaZedce&eZej(j)Zddde Zej!ej"edfd|dgdfZedhe&eZej(j)Zdidj ZedkejXejYejZej[ej\ej$ej]ej^ej_ej`ejaejbejcejdejeejfejgejhejiejjejkejlejmejnZej!ej"edld|dej#e fdmdlZedne&eZej(j)Zdej#e fdodpZej!ej"edMd|dej#ej$ fdqdMZedre&eZej(j)Zdej#ej$ fdsdtZeduejXejYejZej[ej\ej$ej]ej^ej_ej`ejaejbejcejdejeejfejgejhejiejjejkejlejmejnZej!ej"edvd|dej#e dMej#e dej#e fdwdvZedxe&eZej(j)Zdej#e dMej#e dej#e fdydzZed{g d|Zej!ej"ed}d|d~e,de,fdd}Zede&eZej(j)Zd~e,de,fddZedejXejYejZej[ej\ej$ej]ej^ej_ej`ejaejbejcejdejeejfejgejhejiejjejkejlejmejnZej!ej"edd|dej#e dej#e fddZede&eZej(j)Zdej#e dej#e fddZedejXejYejZej[ej\ej$ej]ej^ej_ej`ejaejbejcejdejeejfejgejhejiejjejkejlejmejnZej!ej"eddddgdg dddgdddgejejejgddgg dgge
dddd dD dfde:de,deKde1def
ddZede&eZej(j)Zde:de,deKde1def
ddZej!ej"edd|dej#eji fddZede&eZej(j)Zdej#eji fddZedejXejYejZej[ej\ej$ej]ej^ej_ej`ejaejbejcejdejeejfejgejhejiejjejkejlejmejnZej!ej"edd|dej#e dej#eji fddZede&eZej(j)Zdej#e dej#eji fddZedg dZej!ej"edd|ddZede&eZej(j)Zdd Zej!ej"edd|dej#ej$ fddZede&eZej(j)Zdej#ej$ fddZej!ej"edd|dej#ej$ fddZede&eZej(j)Zdej#ej$ fddZedddMgZej!ej"edd|ddZedÃe&eZej(j)Zddń ZedddgZej!ej"edɃd|dej#ej$ dMej#ej` dej#ej` fddɄZed̃e&ešZej(j)Zdej#ej$ dMej#ej` dej#ej` fdd΄ZedddgZej!ej"edЃd|dej#ej$ dMej#eji dej#eji fddЄZed҃e&eʡZej(j)Zdej#ej$ dMej#eji dej#eji fddԄZedddgZej!ej"edփd|dej#ej$ dMej#eji dej#ej$ fddքZed؃e&eϡZej(j)Zdej#ej$ dMej#eji dej#ej$ fddڄZej!ej"edۃd|ddۄZed݃e&eӡZej(j)Zdd߄ Zej!ej"edd|ddZede&eסZej(j)Zdd Zej!ej"edd|dej#eja fddZede&eۡZej(j)Zdej#eja fddZej!ej"edd|dej#ej` fddZede&eߡZej(j)Zdej#ej` fddZedejXejYejZej[ej\ej$ej]ej^ej_ej`ejaejbejcejdejeejfejgejhejiejjejkejlejmejnZej!ej"edd|de ej#e  dMe ej#e  fddZede&eZej(j)Zde ej#e  dMe ej#e  fddZej!ej"edd|dej#eja fddZede&eZej(j)Zdej#eja fddZej!ej"edd~de,dej#eja fddZede&eZej(j)Zde,dej#eja fddZej!ej"ed d|dej#ej` fdd Zede&eZej(j)Zdej#ej` fddZej!ej"edd|dej#ej` dMej#ej$ fddZede&eZej(j)Zdej#ej` dMej#ej$ fdd	Zej!ej"ed
d|dej#ej` dej#ej` fdd
Zede&eZej(j)Zdej#ej` dej#ej` fddZej!ej"edd|dej#ej` fddZede&eZej(j)Zdej#ej` fddZedddMgZ ej!ej"edd|ddZede&eZej(j)Zdd Zej!ej"edd|dej#ejh dej#ejY fddZede&eZej(j)Zdej#ejh dej#ejY fddZej!ej"ed d|dej#ejY fd!d Z	ed"e&e	Z
e	j(j)Zdej#ejY fd#d$Zej!ej"ed%d|dej#eji fd&d%Zed'e&eZej(j)Zdej#eji fd(d)Zej!ej"ed*d|d+ej#ej` dej#eji fd,d*Zed-e&eZej(j)Zd+ej#ej` dej#eji fd.d/Zed0ejXejYejZej[ej\ej$ej]ej^ej_ej`ejaejbejcejdejeejfejgejhejiejjejkejlejmejnZej!ej"ed1d|de ej#e  fd2d1Zed3e&eZej(j)Zde ej#e  fd4d5Zej!ej"ed6d|d7d6Zed8e&eZej(j)Zd9d: Zej!ej"ed;d|dej#ejh dej#ejh fd<d;Zed=e&eZej(j)Z dej#ejh dej#ejh fd>d?Z!ed@ddMgZ"ej!ej"edAd|d~e,fdBdAZ#edCe&e#Z$e#j(j)Z%d~e,fdDdEZ&edFejXejYejZej[ej\ej$ej]ej^ej_ej`ejaejbejcejdejeejfejgejhejiejjejkejlejmejnZ'ej!ej"edGd|de ej#e'  dMe ej#e'  fdHdGZ(edIe&e(Z)e(j(j)Z*de ej#e'  dMe ej#e'  fdJdKZ+ej!ej"edLd|de ej#ej`  dMe ej#eji  fdMdLZ,edNe&e,Z-e,j(j)Z.de ej#ej`  dMe ej#eji  fdOdPZ/edQejXejYejZej[ej\ej$ej]ej^ej_ej`ejaejbejcejdejeejfejgejhejiejjejkejlejmejnZ0edRejXejYejZej[ej\ej$ej]ej^ej_ej`ejaejbejcejdejeejfejgejhejiejjejkejlejmejnZ1ej!ej"edSd|de ej#e0  dMe ej#e1  fdTdSZ2edUe&e2Z3e2j(j)Z4de ej#e0  dMe ej#e1  fdVdWZ5ej!ej"edXd|de ej#ej`  fdYdXZ6edZe&e6Z7e6j(j)Z8de ej#ej`  fd[d\Z9ej!ej"ed]d|d^e,fd_d]Z:ed`e&e:Z;e:j(j)Z<d^e,fdadbZ=ej!ej"edcdd^e,fdedcZ>edfe&e>Z?e>j(j)Z@d^e,fdgdhZAediejXejYejZej[ej\ej$ej]ej^ej_ej`ejaejbejcejdejeejfejgejhejiejjejkejlejmejnZBej!ej"edjd|de ej#eB  fdkdjZCedle&eCZDeCj(j)ZEde ej#eB  fdmdnZFedoejXejYejZej[ej\ej$ej]ej^ej_ej`ejaejbejcejdejeejfejgejhejiejjejkejlejmejnZGej!ej"edpd|dqeGd^e,fdrdpZHedse&eHZIeHj(j)ZJdqeGd^e,fdtduZKedvejXejYejZej[ej\ej$ej]ej^ej_ej`ejaejbejcejdejeejfejgejhejiejjejkejlejmejnZLej!ej"edwej1ddfdqeLd^e,fdxdwZMedye&eMZNeMj(j)ZOdqeLd^e,fdzd{ZPed|ejYejiZQej!ej"ed}d|de ej#eQ  fd~d}ZRede&eRZSeRj(j)ZTde ej#eQ  fddZUedejYejiZVej!ej"edd|dqeVd^e,fddZWede&eWZXeWj(j)ZYdqeVd^e,fddZZedddgZ[ej!ej"edd|d+ej#ej$ fddZ\ede&e\Z]e\j(j)Z^d+ej#ej$ fddZ_ej!ej"edd|ddZ`ede&e`Zae`j(j)Zbdd Zcej!ej"edd|ddZdede&edZeedj(j)Zfdd Zgej!ej"edddeKdej#ej` fddZhede&ehZiehj(j)ZjdeKdej#ej` fddZkej!ej"edd|ddZlede&elZmelj(j)Zndd ZoedejXejYejZej[ej\ej$ej]ej^ej_ej`ejaejbejcejdejeejfejgejhejiejjejkejlejmejnZpej!ej"edd|dqepdej#ep fddZqede&eqZreqj(j)Zsdqepdej#ep fddZtej!ej"edd|ddZuede&euZveuj(j)Zwdd Zxej!ej"edd|ddZyede&eyZzeyj(j)Z{dd Z|edejXejYejZej[ej\ej$ej]ej^ej_ej`ejaejbejcejdejeejfejgejhejiejjejkejlejmejnZ}ej!ej"edd|dej#e} dej#e} fddZ~ede&e~Ze~j(j)Zdej#e} dej#e} fddZedejXejYejZej[ej\ej$ej]ej^ej_ej`ejaejbejcejdejeejfejgejhejiejjejkejlejmejnZej!ej"edejdfdqedej#e fddZede&eZej(j)Zdqedej#e fddZedejXejYejZej[ej\ej$ej]ej^ej_ej`ejaejbejcejdejeejfejgejhejiejjejkejlejmejnZej!ej"edd|dqedej#e fdÐdZedăe&eZej(j)Zdqedej#e fdŐdƄZedejXejYejZej[ej\ej$ej]ej^ej_ej`ejaejbejcejdejeejfejgejhejiejjejkejlejmejnZej!ej"edȃd|dej#e fdɐdȄZedʃe&eZej(j)Zdej#e fdːd̄Zej!ej"ed̓d|dej#ej$ dMej#ej$ fdΐd̈́Zedσe&eZej(j)Zdej#ej$ dMej#ej$ fdАdфZej!ej"ed҃d|dej#ej$ dMej#ej$ dej#ej` fdӐd҄Zedԃe&eZej(j)Zdej#ej$ dMej#ej$ dej#ej` fdՐdքZej!ej"ed׃d|dej#ej` dMej#ej` fdؐdׄZedكe&eZej(j)Zdej#ej` dMej#ej` fdڐdۄZedejXejYejZej[ej\ej$ej]ej^ej_ej`ejaejbejcejdejeejfejgejhejiejjejkejlejmejnZej!ej"ed݃d|dqedej#e fdސd݄Zed߃e&eZej(j)Zdqedej#e fddZej!ej"edd|dej#ej` fddZede&eZej(j)Zdej#ej` fddZedddMgZej!ej"edd|ddZede&eZej(j)Zdd Zej!ej"edd|dej#ej` fddZede&eZej(j)Zdej#ej` fddZej!ej"edd|de,fddZede&eZej(j)Zde,fddZej!ej"edd|d+ej#ej` fddZede&eZej(j)Zd+ej#ej` fddZej!ej"edd|dej#ejh fddZed e&eZej(j)Zdej#ejh fddZej!ej"edd|dej#ejh dej#ejY fddZede&eZej(j)Zdej#ejh dej#ejY fddZej!ej"edd|dej#ejh fd	dZed
e&eZej(j)Zdej#ejh fddZedejYejiZej!ej"edd|dej#e dej#e fddZede&ešZƐej(j)Zdej#e dej#e fddZej!ej"edd|dej#ej` dej#ej$ fddZede&eɡZʐej(j)Zdej#ej` dej#ej$ fddZej!ej"edd|d~e,fddZede&e͡Zΐej(j)Zd~e,fddZedejXejYejZej[ej\ej$ej]ej^ej_ej`ejaejbejcejdejeejfejgejhejiejjejkejlejmejnZej!ej"edd|dej#ej` d+ej#e dej#e fd dZed!e&eҡZӐej(j)ZԐdej#ej` d+ej#e dej#e fd"d#Zej!ej"ed$d|dej#ej` fd%d$Zed&e&e֡Zאej(j)Zؐdej#ej` fd'd(Zej!ej"ed)d|dMe:fd*d)Zed+e&eڡZېej(j)ZdMe:fd,d-Zej!ej"ed.dd/e:d0e:dej#ejh fd1d.Zed2e&eޡZߐej(j)Zd/e:d0e:dej#ejh fd3d4Zed5ej$ej]Zej!ej"ed6d|dqedej#e fd7d6Zed8e&eZej(j)Zdqedej#e fd9d:Zed;ddgZej!ej"ed<d|d+ej#ej$ fd=d<Zed>e&eZej(j)Zd+ej#ej$ fd?d@Zej!ej"edAd|dej#ej$ dMej#ej$ fdBdAZedCe&eZej(j)Zdej#ej$ dMej#ej$ fdDdEZej!ej"edFd|dej#ej$ dMej#ej$ dej#ej$ fdGdFZedHe&eZej(j)Zdej#ej$ dMej#ej$ dej#ej$ fdIdJZej!ej"edKd|dej#ej$ dMej#ej$ dej#ej` fdLdKZedMe&eZej(j)Zdej#ej$ dMej#ej$ dej#ej` fdNdOZedPddMgZej!ej"edQd|dRdQZedSe&eZej(j)ZdTdU Zej!ej"edVd|dej#ej` dMej#ej` fdWdVZedXe&eZej(j)Zdej#ej` dMej#ej` fdYdZZ ed[ddMgZej!ej"ed\d|d]d\Zed^e&eZej(j)Zd_d` ZedaejXejYejZej[ej\ej$ej]ej^ej_ej`ejaejbejcejdejeejfejgejhejiejjejkejlejmejnZej!ej"edbd|dej#e dMej#e fdcdbZedde&eZej(j)Z	dej#e dMej#e fdedfZ
ej!ej"edgd|dhdgZedie&eZej(j)Zdjdk Zej!ej"edld|dmdlZedne&eZej(j)Zdodp Zej!ej"edqd|drdqZedse&eZej(j)Zdtdu ZedvejXejYejZej[ej\ej$ej]ej^ej_ej`ejaejbejcejdejeejfejgejhejiejjejkejlejmejnZej!ej"edwd|dej#e dej#e fdxdwZedye&eZej(j)Zdej#e dej#e fdzd{ZdS (  zUPython 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areturnc           
   
   C     t j pt  }|j}|jrvz
t|d| }|W S  tjy0 } zt	||  W Y d}~nd}~w tj
y9   Y nw zt| fd}|turH|W S t| |dW S  tjyX   Y q ttfyu   ttdt| d}|tjjurt| Y S  w t| fd}|tur|S ztjd| d\}}}}W n ttfy   ttdt| d}|tjjur| Y S  w |dd }t rd}|j}	td|	|| |\}|S )wTODO: add doc.

  Args:
    name: A name for the operation (optional).

  Returns:
    A `Tensor` of type `float32`.
  ANnamectx r   )_contextr   _thread_local_datais_eagerr   TFE_Py_FastPathExecute_core_NotOkStatusException_opsraise_from_not_ok_status_FallbackException_dispatcher_for_aNotImplementeda_eager_fallback_SymbolicException	TypeError
ValueError	_dispatchr   r   dictOpDispatcherNOT_SUPPORTED_op_def_library_apply_op_helper_executemust_record_gradientinputsrecord_gradient
r   _ctxtld_resulte__op_outputs_attrs_inputs_flatr   r   e/home/www/facesmatcher.com/pyenv/lib/python3.10/site-packages/tensorflow/python/framework/test_ops.pyr      v   z	raw_ops.Ac                 C   @   g }d }t jdd|||| d}t  rt d||| |\}|S )N   A   r1   attrsr   r   r   r/   r   r0   r2   r   r   r<   r;   r6   r   r   r=   r%   \      r%   attrc           	      C   z  t j pt  }|j}|jr{zt|d|d| }|W S  tjy2 } zt	|| W Y d}~nd}~w tj
y;   Y nw zt| |fd}|turK|W S t| ||dW S  tjy\   Y q ttfyz   ttdt| |d}|tjjury| Y S  w t| |fd}|tur|S t| d} ztjd| |d\}}}}W |S  ttfy   ttdt| |d}|tjjur| Y S  w )zTODO: add doc.

  Args:
    a: An `int`.
    name: A name for the operation (optional).

  Returns:
    The created Operation.
  Attrr   Nr   r   r   r   r   r   )r   r   r   r   r   r   r   r   r    r!   r"   _dispatcher_for_attrr$   attr_eager_fallbackr&   r'   r(   r)   r   rG   r*   r+   r,   r/   make_intr-   r.   	r   r   r4   r5   r6   r7   r8   r9   r:   r   r   r=   rG   h   h   
	zraw_ops.Attrc                 C   6   t | d} g }d| f}t jdd||||d}d }|S )Nr   s   Attrr   rB   r/   rN   r   r   r   r   r<   r;   r6   r   r   r=   rM         rM   	attr_boolc           	      C   rH   )zTODO: add doc.

  Args:
    a: A `bool`.
    name: A name for the operation (optional).

  Returns:
    The created Operation.
  AttrBoolr   NrJ   r   rK   )r   r   r   r   r   r   r   r   r    r!   r"   _dispatcher_for_attr_boolr$   attr_bool_eager_fallbackr&   r'   r(   r)   r   rU   r*   r+   r,   r/   	make_boolr-   r.   rO   r   r   r=   rU      rP   zraw_ops.AttrBoolc                 C   rQ   )Nr   s   AttrBoolr   rB   )r/   rY   r   rS   r   r   r=   rX         
rX   attr_bool_listc           	      C     t j pt  }|j}|jr{zt|d|d| }|W S  tjy2 } zt	|| W Y d}~nd}~w tj
y;   Y nw zt| |fd}|turK|W S t| ||dW S  tjy\   Y q ttfyz   ttdt| |d}|tjjury| Y S  w t| |fd}|tur|S t| ttfstd|  dd	 | D } ztjd| |d\}}}}W |S  ttfy   ttdt| |d}|tjjur| Y S  w )
zTODO: add doc.

  Args:
    a: A list of `bools`.
    name: A name for the operation (optional).

  Returns:
    The created Operation.
  AttrBoolListr   NrJ   r   rK   >Expected list for 'a' argument to 'attr_bool_list' Op, not %r.c                 S      g | ]}t |d qS r   r/   rY   .0_br   r   r=   
<listcomp>*      z"attr_bool_list.<locals>.<listcomp>)r   r   r   r   r   r   r   r   r    r!   r"   _dispatcher_for_attr_bool_listr$   attr_bool_list_eager_fallbackr&   r'   r(   r)   r   r[   r*   r+   r,   
isinstancelisttupler-   r.   rO   r   r   r=   r[      t   
	zraw_ops.AttrBoolListc                 C   R   t | ttfstd|  dd | D } g }d| f}tjdd||||d}d }|S )Nr^   c                 S   r_   r`   ra   rb   r   r   r=   re   ?  rf   z1attr_bool_list_eager_fallback.<locals>.<listcomp>r   s   AttrBoolListr   rB   ri   rj   rk   r'   r/   r   rS   r   r   r=   rh   :     
rh   attr_defaultbananac           	      C   s  t j pt  }|j}|jr{zt|d|d| }|W S  tjy2 } zt	|| W Y d}~nd}~w tj
y;   Y nw zt| |fd}|turK|W S t| ||dW S  tjy\   Y q ttfyz   ttdt| |d}|tjjury| Y S  w t| |fd}|tur|S | du rd} t| d} ztjd| |d\}}}}W |S  ttfy   ttdt| |d}|tjjur| Y S  w )zTODO: add doc.

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

  Returns:
    The created Operation.
  AttrDefaultr   NrJ   r   rK   rq   )r   r   r   r   r   r   r   r   r    r!   r"   _dispatcher_for_attr_defaultr$   attr_default_eager_fallbackr&   r'   r(   r)   r   rp   r*   r+   r,   r/   make_strr-   r.   rO   r   r   r=   rp   H  sl   
	zraw_ops.AttrDefaultc                 C   sB   | d u rd} t | d} g }d| f}t jdd||||d}d }|S )Nrq   r   s   AttrDefaultr   rB   r/   ru   r   rS   r   r   r=   rt     s   
rt   attr_empty_list_defaultc           	      C   s  t j pt  }|j}|jr{zt|d|d| }|W S  tjy2 } zt	|| W Y d}~nd}~w tj
y;   Y nw zt| |fd}|turK|W S t| ||dW S  tjy\   Y q ttfyz   ttdt| |d}|tjjury| Y S  w t| |fd}|tur|S | du rg } t| ttfstd|  dd	 | D } ztjd| |d\}}}}W |S  ttfy   ttdt| |d}|tjjur| Y S  w )
zTODO: add doc.

  Args:
    a: An optional list of `floats`. Defaults to `[]`.
    name: A name for the operation (optional).

  Returns:
    The created Operation.
  AttrEmptyListDefaultr   NrJ   r   rK   GExpected list for 'a' argument to 'attr_empty_list_default' Op, not %r.c                 S   r_   r`   r/   
make_floatrc   Z_fr   r   r=   re     rf   z+attr_empty_list_default.<locals>.<listcomp>)r   r   r   r   r   r   r   r   r    r!   r"   '_dispatcher_for_attr_empty_list_defaultr$   &attr_empty_list_default_eager_fallbackr&   r'   r(   r)   r   rw   r*   r+   r,   ri   rj   rk   r-   r.   rO   r   r   r=   rw     sx   
	zraw_ops.AttrEmptyListDefaultc                 C   s^   | d u rg } t | ttfstd|  dd | D } g }d| f}tjdd||||d}d }|S )Nry   c                 S   r_   r`   rz   r|   r   r   r=   re     rf   z:attr_empty_list_default_eager_fallback.<locals>.<listcomp>r   s   AttrEmptyListDefaultr   rB   rn   rS   r   r   r=   r~     s    
r~   	attr_enumc           	      C   rH   )zTODO: add doc.

  Args:
    a: A `string` from: `"apples", "oranges"`.
    name: A name for the operation (optional).

  Returns:
    The created Operation.
  AttrEnumr   NrJ   r   rK   )r   r   r   r   r   r   r   r   r    r!   r"   _dispatcher_for_attr_enumr$   attr_enum_eager_fallbackr&   r'   r(   r)   r   r   r*   r+   r,   r/   ru   r-   r.   rO   r   r   r=   r     rP   zraw_ops.AttrEnumc                 C   rQ   )Nr   s   AttrEnumr   rB   rv   rS   r   r   r=   r   &  rZ   r   attr_enum_listc           	      C   r\   )
zTODO: add doc.

  Args:
    a: A list of `strings` from: `"apples", "oranges"`.
    name: A name for the operation (optional).

  Returns:
    The created Operation.
  AttrEnumListr   NrJ   r   rK   >Expected list for 'a' argument to 'attr_enum_list' Op, not %r.c                 S   r_   r`   r/   ru   rc   Z_sr   r   r=   re   b  rf   z"attr_enum_list.<locals>.<listcomp>)r   r   r   r   r   r   r   r   r    r!   r"   _dispatcher_for_attr_enum_listr$   attr_enum_list_eager_fallbackr&   r'   r(   r)   r   r   r*   r+   r,   ri   rj   rk   r-   r.   rO   r   r   r=   r   0  rl   zraw_ops.AttrEnumListc                 C   rm   )Nr   c                 S   r_   r`   r   r   r   r   r=   re   w  rf   z1attr_enum_list_eager_fallback.<locals>.<listcomp>r   s   AttrEnumListr   rB   rn   rS   r   r   r=   r   r  ro   r   
attr_floatc           	      C   rH   )zTODO: add doc.

  Args:
    a: A `float`.
    name: A name for the operation (optional).

  Returns:
    The created Operation.
  	AttrFloatr   NrJ   r   rK   )r   r   r   r   r   r   r   r   r    r!   r"   _dispatcher_for_attr_floatr$   attr_float_eager_fallbackr&   r'   r(   r)   r   r   r*   r+   r,   r/   r{   r-   r.   rO   r   r   r=   r     rP   zraw_ops.AttrFloatc                 C   rQ   )Nr   s	   AttrFloatr   rB   )r/   r{   r   rS   r   r   r=   r     rZ   r   attr_list_default      c           	      C   s  t j pt  }|j}|jr{zt|d|d| }|W S  tjy2 } zt	|| W Y d}~nd}~w tj
y;   Y nw zt| |fd}|turK|W S t| ||dW S  tjy\   Y q ttfyz   ttdt| |d}|tjjury| Y S  w t| |fd}|tur|S | du rddg} t| ttfstd	|  d
d | D } ztjd| |d\}}}}W |S  ttfy   ttdt| |d}|tjjur| Y S  w )zTODO: add doc.

  Args:
    a: An optional list of `ints`. Defaults to `[5, 15]`.
    name: A name for the operation (optional).

  Returns:
    The created Operation.
  AttrListDefaultr   NrJ   r   rK   r   r   AExpected list for 'a' argument to 'attr_list_default' Op, not %r.c                 S   r_   r`   r/   rN   rc   Z_ir   r   r=   re     rf   z%attr_list_default.<locals>.<listcomp>)r   r   r   r   r   r   r   r   r    r!   r"   !_dispatcher_for_attr_list_defaultr$    attr_list_default_eager_fallbackr&   r'   r(   r)   r   r   r*   r+   r,   ri   rj   rk   r-   r.   rO   r   r   r=   r     sx   
	zraw_ops.AttrListDefaultc                 C   sb   | d u rddg} t | ttfstd|  dd | D } g }d| f}tjdd||||d	}d }|S )
Nr   r   r   c                 S   r_   r`   r   r   r   r   r=   re     rf   z4attr_list_default_eager_fallback.<locals>.<listcomp>r   s   AttrListDefaultr   rB   rn   rS   r   r   r=   r     s    
r   attr_list_minc           	      C   r\   )
zTODO: add doc.

  Args:
    a: A list of `ints` that has length `>= 2`.
    name: A name for the operation (optional).

  Returns:
    The created Operation.
  AttrListMinr   NrJ   r   rK   =Expected list for 'a' argument to 'attr_list_min' Op, not %r.c                 S   r_   r`   r   r   r   r   r=   re   N  rf   z!attr_list_min.<locals>.<listcomp>)r   r   r   r   r   r   r   r   r    r!   r"   _dispatcher_for_attr_list_minr$   attr_list_min_eager_fallbackr&   r'   r(   r)   r   r   r*   r+   r,   ri   rj   rk   r-   r.   rO   r   r   r=   r     rl   zraw_ops.AttrListMinc                 C   rm   )Nr   c                 S   r_   r`   r   r   r   r   r=   re   c  rf   z0attr_list_min_eager_fallback.<locals>.<listcomp>r   s   AttrListMinr   rB   rn   rS   r   r   r=   r   ^  ro   r   TV_AttrListTypeDefault_Tattr_list_type_defaultbc                 C     t j pt  }|j}|jr~zt|d|| |}|W S  tjy2 } zt	|| W Y d}~nd}~w tj
y;   Y nw zt| ||fd}|turL|W S t| |||dW S  tjy^   Y q ttfy}   ttdt| ||d}|tjjur|| Y S  w t| ||fd}|tur|S t| ttfstd|  t| }t|ttfstd| t||krtdt||f ztjd| ||d\}}}	}
W |	S  ttfy   ttdt| ||d}|tjjur| Y S  w )	a
  TODO: add doc.

  Args:
    a: A list of at least 1 `Tensor` objects with the same type.
    b: A list with the same length as `a` of `Tensor` objects with the same type as `a`.
    name: A name for the operation (optional).

  Returns:
    The created Operation.
  AttrListTypeDefaultNr   r   r   r   r   FExpected list for 'a' argument to 'attr_list_type_default' Op, not %r.FExpected list for 'b' argument to 'attr_list_type_default' Op, not %r.eList argument 'b' to 'attr_list_type_default' Op with length %d must match length %d of argument 'a'.)r   r   r   r   r   r   r   r   r    r!   r"   &_dispatcher_for_attr_list_type_defaultr$   %attr_list_type_default_eager_fallbackr&   r'   r(   r)   r   r   r*   r+   r,   ri   rj   rk   lenr-   r.   r   r   r   r4   r5   r6   r7   _attr_Nr8   r9   r:   r   r   r=   r   n     



	zraw_ops.AttrListTypeDefaultc           
      C   s   t | ttfstd|  t| }t |ttfstd| t||kr.tdt||f tt| t| |g tj	\}}|d | g||d   }|d d |dd  g }|\} }t| t| }d|d|f}tj
dd||||d	}	d }	|	S )
Nr   r   r   rA   TNs   AttrListTypeDefaultr   rB   )ri   rj   rk   r'   r   r(   r/   args_to_matching_eager_dtypesint32r   
r   r   r   r   r   _attr_T	_inputs_Tr<   r;   r6   r   r   r=   r     s<   
"
r   attr_minc           	      C   rH   )zTODO: add doc.

  Args:
    a: An `int` that is `>= 5`.
    name: A name for the operation (optional).

  Returns:
    The created Operation.
  AttrMinr   NrJ   r   rK   )r   r   r   r   r   r   r   r   r    r!   r"   _dispatcher_for_attr_minr$   attr_min_eager_fallbackr&   r'   r(   r)   r   r   r*   r+   r,   r/   rN   r-   r.   rO   r   r   r=   r     rP   zraw_ops.AttrMinc                 C   rQ   )Nr   s   AttrMinr   rB   rR   rS   r   r   r=   r     rT   r   attr_partial_shapec           	      C   rH   )TODO: add doc.

  Args:
    a: A `tf.TensorShape` or list of `ints`.
    name: A name for the operation (optional).

  Returns:
    The created Operation.
  AttrPartialShaper   NrJ   r   rK   )r   r   r   r   r   r   r   r   r    r!   r"   "_dispatcher_for_attr_partial_shaper$   !attr_partial_shape_eager_fallbackr&   r'   r(   r)   r   r   r*   r+   r,   r/   
make_shaper-   r.   rO   r   r   r=   r     rP   zraw_ops.AttrPartialShapec                 C   rQ   )Nr   s   AttrPartialShaper   rB   r/   r   r   rS   r   r   r=   r   [  rZ   r   attr_partial_shape_listc           	      C   r\   )
TODO: add doc.

  Args:
    a: A list of shapes (each a `tf.TensorShape` or list of `ints`).
    name: A name for the operation (optional).

  Returns:
    The created Operation.
  AttrPartialShapeListr   NrJ   r   rK   GExpected list for 'a' argument to 'attr_partial_shape_list' Op, not %r.c                 S   r_   r`   r/   r   r   r   r   r=   re     rf   z+attr_partial_shape_list.<locals>.<listcomp>)r   r   r   r   r   r   r   r   r    r!   r"   '_dispatcher_for_attr_partial_shape_listr$   &attr_partial_shape_list_eager_fallbackr&   r'   r(   r)   r   r   r*   r+   r,   ri   rj   rk   r-   r.   rO   r   r   r=   r   e  rl   zraw_ops.AttrPartialShapeListc                 C   rm   )Nr   c                 S   r_   r`   r   r   r   r   r=   re     rf   z:attr_partial_shape_list_eager_fallback.<locals>.<listcomp>r   s   AttrPartialShapeListr   rB   rn   rS   r   r   r=   r     ro   r   
attr_shapec           	      C   rH   )r   	AttrShaper   NrJ   r   rK   )r   r   r   r   r   r   r   r   r    r!   r"   _dispatcher_for_attr_shaper$   attr_shape_eager_fallbackr&   r'   r(   r)   r   r   r*   r+   r,   r/   r   r-   r.   rO   r   r   r=   r     rP   zraw_ops.AttrShapec                 C   rQ   )Nr   s	   AttrShaper   rB   r   rS   r   r   r=   r     rZ   r   attr_shape_listc           	      C   r\   )
r   AttrShapeListr   NrJ   r   rK   ?Expected list for 'a' argument to 'attr_shape_list' Op, not %r.c                 S   r_   r`   r   r   r   r   r=   re   /  rf   z#attr_shape_list.<locals>.<listcomp>)r   r   r   r   r   r   r   r   r    r!   r"   _dispatcher_for_attr_shape_listr$   attr_shape_list_eager_fallbackr&   r'   r(   r)   r   r   r*   r+   r,   ri   rj   rk   r-   r.   rO   r   r   r=   r     rl   zraw_ops.AttrShapeListc                 C   rm   )Nr   c                 S   r_   r`   r   r   r   r   r=   re   D  rf   z2attr_shape_list_eager_fallback.<locals>.<listcomp>r   s   AttrShapeListr   rB   rn   rS   r   r   r=   r   ?  ro   r   TV_AttrTypeDefault_Tattr_type_defaultc           	      C   l  t j pt  }|j}|jrzzt|d|| }|W S  tjy1 } zt	|| W Y d}~nd}~w tj
y:   Y nw zt| |fd}|turJ|W S t| ||dW S  tjy[   Y q ttfyy   ttdt| |d}|tjjurx| Y S  w t| |fd}|tur|S ztjd| |d\}}}}W |S  ttfy   ttdt| |d}|tjjur| Y S  w )zTODO: add doc.

  Args:
    a: A `Tensor`.
    name: A name for the operation (optional).

  Returns:
    The created Operation.
  AttrTypeDefaultNr   r   rK   )r   r   r   r   r   r   r   r   r    r!   r"   !_dispatcher_for_attr_type_defaultr$    attr_type_default_eager_fallbackr&   r'   r(   r)   r   r   r*   r+   r,   r-   r.   rO   r   r   r=   r   O  f   	zraw_ops.AttrTypeDefaultc                 C   sF   t | g|g tj\}\} | g}d|f}t jdd||||d}d }|S )Nr   s   AttrTypeDefaultr   rB   )r/   r   r   r   r   r   r   r   r   r<   r;   r6   r   r   r=   r     s   
r   c           
   
   C   r   )r   BNr   r   r   )r   r   r   r   r   r   r   r   r    r!   r"   _dispatcher_for_br$   b_eager_fallbackr&   r'   r(   r)   r   r   r*   r+   r,   r-   r.   r/   r0   r1   r2   r3   r   r   r=   r     r>   z	raw_ops.Bc                 C   r?   )N   BrA   rB   r   rD   rE   r   r   r=   r     rF   r   TV_Binary_Tbinaryc                 C     t j pt  }|j}|jr~zt|d|| |}|W S  tjy2 } zt	|| W Y d}~nd}~w tj
y;   Y nw zt| ||fd}|turL|W S t| |||dW S  tjy^   Y q ttfy}   ttdt| ||d}|tjjur|| Y S  w t| ||fd}|tur|S ztjd| ||d\}}}}	W n  ttfy   ttdt| ||d}|tjjur| Y S  w |	dd }t rd|df}
|j}td||
| |\}|S )zTODO: add doc.

  Args:
    a: A `Tensor`.
    b: A `Tensor`. Must have the same type as `a`.
    name: A name for the operation (optional).

  Returns:
    A `Tensor`. Has the same type as `a`.
  BinaryNr   r   r   r   )r   r   r   r   r   r   r   r   r    r!   r"   _dispatcher_for_binaryr$   binary_eager_fallbackr&   r'   r(   r)   r   r   r*   r+   r,   r-   r.   r/   r0   _get_attr_typer1   r2   r   r   r   r4   r5   r6   r7   r8   r9   r:   r;   r<   r   r   r=   r     sv   


zraw_ops.Binaryc           	      C   sf   t | |g|g \}}|\} }| |g}d|f}t jdd||||d}t  r.t d||| |\}|S )Nr   s   BinaryrA   rB   r   r/   r   r   r0   r2   )	r   r   r   r   r   r   r<   r;   r6   r   r   r=   r   .  s   r   ComplexStruct)r   r   ccomplex_structn_an_bc                 C   s  t j pt  }|j}|jrzt|d|d| d|d|	}t|}|W S  tj	y; } zt
|| W Y d}~nd}~w tjyD   Y nw zt| |||fd}|turV|W S t| ||||dW S  tjyi   Y q ttfy   ttdt| |||d}|tjjur| Y S  w t| |||fd}|tur|S t| d} t|d}t|ttfstd	| d
d |D }ztjd| |||d\}}}	}
W n! ttfy   ttdt| |||d}|tjjur| Y S  w |
dd }t  rd|	!dd|	!dd|	"df}|	j#}t$d||| |d|  g|| d  }|dd |dd|  g |d| d  }|dd |dd g }t|}|S )a  TODO: add doc.

  Args:
    n_a: An `int` that is `>= 0`.
    n_b: An `int` that is `>= 0`.
    t_c: A list of `tf.DTypes`.
    name: A name for the operation (optional).

  Returns:
    A tuple of `Tensor` objects (a, b, c).

    a: A list of `n_a` `Tensor` objects with type `int32`.
    b: A list of `n_b` `Tensor` objects with type `int64`.
    c: A list of `Tensor` objects of type `t_c`.
  r   r   r   t_cN)r   r   r   r   r   r   )r   r   r   r   @Expected list for 't_c' argument to 'complex_struct' Op, not %r.c                 S   r_   r   r/   	make_typerc   Z_tr   r   r=   re   {  rf   z"complex_struct.<locals>.<listcomp>rA      )%r   r   r   r   r   r   _ComplexStructOutput_maker   r   r    r!   r"   _dispatcher_for_complex_structr$   complex_struct_eager_fallbackr&   r'   r(   r)   r   r   r*   r+   r,   r/   rN   ri   rj   rk   r-   r.   r0   _get_attr_intget_attrr1   r2   )r   r   r   r   r4   r5   r6   r7   r8   r9   r:   r;   r<   r   r   r=   r   @  s   



.
zraw_ops.ComplexStructc                 C   s   t | d} t |d}t|ttfstd| dd |D }g }d| d|d|f}t jd| | t| ||||d}t  rGt 	d	||| |d |  g|| d   }|d d
 |d
d
|  g |d
| d   }|d d |dd  g }t
|}|S )Nr   r   r   c                 S   r_   r   r   r   r   r   r=   re     rf   z1complex_struct_eager_fallback.<locals>.<listcomp>r   s   ComplexStructrB   r   rA   r   )r/   rN   ri   rj   rk   r'   r   r   r0   r2   r   r   )r   r   r   r   r   r<   r;   r6   r   r   r=   r     s0   .
r   TV_CopyOp_Tcopy_opc                 C     t j pt  }|j}|jrzzt|d|| }|W S  tjy1 } zt	|| W Y d}~nd}~w tj
y:   Y nw zt| |fd}|turJ|W S t| ||dW S  tjy[   Y q ttfyy   ttdt| |d}|tjjurx| Y S  w t| |fd}|tur|S ztjd| |d\}}}}W n ttfy   ttdt| |d}|tjjur| Y S  w |dd }t rd|df}	|j}
td|
|	| |\}|S )TODO: add doc.

  Args:
    a: A `Tensor`.
    name: A name for the operation (optional).

  Returns:
    A `Tensor`. Has the same type as `a`.
  CopyOpNr   r   rK   r   )r   r   r   r   r   r   r   r   r    r!   r"   _dispatcher_for_copy_opr$   copy_op_eager_fallbackr&   r'   r(   r)   r   r   r*   r+   r,   r-   r.   r/   r0   r   r1   r2   r   r   r4   r5   r6   r7   r8   r9   r:   r;   r<   r   r   r=   r     v   zraw_ops.CopyOpc                 C   \   t | g|g \}\} | g}d|f}t jdd||||d}t  r)t d||| |\}|S )Nr   s   CopyOprA   rB   r   r   r   r   r   r=   r        r   TV_DefaultAttrs_type_valdefault_attrsabc {   rA   r      
   TFr   rA   ,dtype: DT_INT32 tensor_shape { } int_val: 1 
tensor_valc                 C   r_   tensor_list_valr/   make_tensorrc   Z_pbr   r   r=   re     rf   re   r  
string_valint_val	float_valbool_valtype_valc                 C   s@  t j pt  }|j}|jrzGtjg |d|d| d|d|d|d|d|d|d	|d
|d|	d|
d|d|d|R  }|W S  tjym } zt	|| W Y d}~nd}~w tj
yv   Y nw zQt| |||||||||	|
||||fd}|tur|W S tdi d| d|d|d|d|d|d|d	|d
|d|	d|
d|d|d|d|d|W S  tjy   Y q ttfy   ttdt| |||||||||	|
||||d}|tjjur| Y S  w t| |||||||||	|
||||fd}|tur|S | du r!d} t| d} |du r0ddg}t|ttfs>td| dd |D }|du rLd}t|d}|du r[g d}t|ttfsitd| dd |D }|du rwd}t|d}|du rdg}t|ttfstd| d d |D }|du rd!}t|d}|du rd!d"g}t|ttfstd#| d$d |D }|du rtj }t!|d
}|	du rtj tj"g}	t|	ttfstd%|	 d&d |	D }	|
du rd'd(g}
t#|
d}
|du rg d(gg}t|ttfstd)| d*d |D }|du r,t$d+d}t$|d}|du r>d,d d-D }t|ttfsLtd.| d/d |D }zt%j&	d0| |||||||||	|
||||d\}}}}W |S  ttfy   ttdt| |||||||||	|
||||d}|tjjur| Y S  w )1a  TODO: add doc.

  Args:
    string_val: An optional `string`. Defaults to `"abc"`.
    string_list_val: An optional list of `strings`. Defaults to `["abc", ""]`.
    int_val: An optional `int`. Defaults to `123`.
    int_list_val: An optional list of `ints`. Defaults to `[1, 2, 3]`.
    float_val: An optional `float`. Defaults to `10`.
    float_list_val: An optional list of `floats`. Defaults to `[10]`.
    bool_val: An optional `bool`. Defaults to `True`.
    bool_list_val: An optional list of `bools`. Defaults to `[True, False]`.
    type_val: An optional `tf.DType`. Defaults to `tf.int32`.
    type_list_val: An optional list of `tf.DTypes`. Defaults to `[tf.int32, tf.float32]`.
    shape_val: An optional `tf.TensorShape` or list of `ints`. Defaults to `[2, 1]`.
    shape_list_val: An optional list of shapes (each a `tf.TensorShape` or list of `ints`). Defaults to `[[], [1]]`.
    tensor_val: An optional `tf.TensorProto`. Defaults to `dtype: DT_INT32 tensor_shape { } int_val: 1`.
    tensor_list_val: An optional list of `tf.TensorProto` objects. Defaults to `[dtype: DT_INT32 tensor_shape { } int_val: 1]`.
    name: A name for the operation (optional).

  Returns:
    The created Operation.
  DefaultAttrsr  string_list_valr  int_list_valr  float_list_valr  bool_list_valr  type_list_val	shape_valshape_list_valr	  r  Nr   r   r   )r  r  r  r  r  r  r  r  r  r  r  r  r	  r  r   r  r  KExpected list for 'string_list_val' argument to 'default_attrs' Op, not %r.c                 S   r_   r  r   r   r   r   r=   re   g  rf   z!default_attrs.<locals>.<listcomp>r  r  HExpected list for 'int_list_val' argument to 'default_attrs' Op, not %r.c                 S   r_   r  r   r   r   r   r=   re   q  rf   r  JExpected list for 'float_list_val' argument to 'default_attrs' Op, not %r.c                 S   r_   r  rz   r|   r   r   r=   re   {  rf   TFIExpected list for 'bool_list_val' argument to 'default_attrs' Op, not %r.c                 S   r_   r  ra   rb   r   r   r=   re     rf   IExpected list for 'type_list_val' argument to 'default_attrs' Op, not %r.c                 S   r_   r  r   r   r   r   r=   re     rf   r   rA   JExpected list for 'shape_list_val' argument to 'default_attrs' Op, not %r.c                 S   r_   r  r   r   r   r   r=   re     rf   r  c                 S   r_   r
  r  r  r   r   r=   re     rf   r  KExpected list for 'tensor_list_val' argument to 'default_attrs' Op, not %r.c                 S   r_   r
  r  r   r   r   r=   re     rf   )r  )'r   r   r   r   r   r   r   r   r    r!   r"   _dispatcher_for_default_attrsr$   default_attrs_eager_fallbackr&   r'   r(   r)   r   r  r*   r+   r,   r/   ru   ri   rj   rk   rN   r{   rY   r   r   r   float32r   r  r-   r.   )r  r  r  r  r  r  r  r  r  r  r  r  r	  r  r   r4   r5   r6   r7   r8   r9   r:   r   r   r=   r    s  	





















zraw_ops.DefaultAttrsc                 C   s  | d u rd} t | d} |d u rddg}t|ttfs!td| dd |D }|d u r.d}t |d}|d u r<g d	}t|ttfsItd
| dd |D }|d u rVd}t |d}|d u rcdg}t|ttfsptd| dd |D }|d u r}d}t |d}|d u rddg}t|ttfstd| dd |D }|d u rt	j
}t |d}|	d u rt	j
t	jg}	t|	ttfstd|	 dd |	D }	|
d u rddg}
t |
d}
|d u rg dgg}t|ttfstd| dd |D }|d u rt dd}t |d}|d u rdd d D }t|ttfstd!| d"d |D }g }d| d#|d|d$|d|d%|d|d&|d|d'|	d|
d(|d|d)|f}t jd*d+||||d,}d }|S )-Nr  r  r  r  c                 S   r_   r  r   r   r   r   r=   re     rf   z0default_attrs_eager_fallback.<locals>.<listcomp>r  r  r  r  c                 S   r_   r   r   r   r   r   r=   re     rf   r  r  r!  c                 S   r_   r"  rz   r|   r   r   r=   re     rf   Tr  Fr#  c                 S   r_   r$  ra   rb   r   r   r=   re     rf   r  r%  c                 S   r_   r&  r   r   r   r   r=   re     rf   r   rA   r  r'  c                 S   r_   r(  r   r   r   r   r=   re     rf   r  r	  c                 S   r_   r
  r  r  r   r   r=   re     rf   r  r)  c                 S   r_   r
  r  r   r   r   r=   re     rf   r  r  r  r  r  r  r  s   DefaultAttrsr   rB   )r/   ru   ri   rj   rk   r'   rN   r{   rY   r   r   r   r,  r   r  r   )r  r  r  r  r  r  r  r  r  r  r  r  r	  r  r   r   r<   r;   r6   r   r   r=   r+    s   





r+  device_placement_opc           
   
   C   r   )vTODO: add doc.

  Args:
    name: A name for the operation (optional).

  Returns:
    A `Tensor` of type `string`.
  DevicePlacementOpNr   r   r   )r   r   r   r   r   r   r   r   r    r!   r"   #_dispatcher_for_device_placement_opr$   "device_placement_op_eager_fallbackr&   r'   r(   r)   r   r-  r*   r+   r,   r-   r.   r/   r0   r1   r2   r3   r   r   r=   r-    r>   zraw_ops.DevicePlacementOpc                 C   r?   )Ns   DevicePlacementOprA   rB   r/  rD   rE   r   r   r=   r1  ^     
r1  TV_DtypeWithDefaultOp_Tdtype_with_default_opin_c                 C   r   )zTODO: add doc.

  Args:
    in_: A `Tensor`.
    name: A name for the operation (optional).

  Returns:
    A `Tensor` of type `string`.
  DtypeWithDefaultOpNr   r   )r5  r   r   )r   r   r   r   r   r   r   r   r    r!   r"   %_dispatcher_for_dtype_with_default_opr$   $dtype_with_default_op_eager_fallbackr&   r'   r(   r)   r   r4  r*   r+   r,   r-   r.   r/   r0   r   r1   r2   )r5  r   r4   r5   r6   r7   r8   r9   r:   r;   r<   r   r   r=   r4  l  r   zraw_ops.DtypeWithDefaultOpc                 C   s`   t | g|g tj\}\} | g}d|f}t jdd||||d}t  r+t d||| |\}|S )Nr   s   DtypeWithDefaultOprA   rB   r6  )r/   r   r   Zuint8r   r0   r2   )r5  r   r   r   r<   r;   r6   r   r   r=   r8    s   
r8  FiveFloatOutputs)r   r   r   dr7   five_float_outputsc           
   
   C     t j pt  }|j}|jr{zt|d| }t|}|W S  tj	y5 } zt
||  W Y d}~nd}~w tjy>   Y nw zt| fd}|turM|W S t| |dW S  tjy]   Y q ttfyz   ttdt| d}|tjjury| Y S  w t| fd}|tur|S ztjd| d\}}}}W n ttfy   ttdt| d}|tjjur| Y S  w |dd }t rd}|j}	td|	|| t|}|S )a@  TODO: add doc.

  Args:
    name: A name for the operation (optional).

  Returns:
    A tuple of `Tensor` objects (a, b, c, d, e).

    a: A `Tensor` of type `float32`.
    b: A `Tensor` of type `float32`.
    c: A `Tensor` of type `float32`.
    d: A `Tensor` of type `float32`.
    e: A `Tensor` of type `float32`.
  r9  Nr   r   r   )r   r   r   r   r   r   _FiveFloatOutputsOutputr   r   r   r    r!   r"   "_dispatcher_for_five_float_outputsr$   !five_float_outputs_eager_fallbackr&   r'   r(   r)   r   r;  r*   r+   r,   r-   r.   r/   r0   r1   r2   r3   r   r   r=   r;    sx   

zraw_ops.FiveFloatOutputsc                 C   D   g }d }t jdd|||| d}t  rt d||| t|}|S )Ns   FiveFloatOutputsr   rB   r9  )r/   r   r0   r2   r=  r   rE   r   r   r=   r?  	     

r?  float_inputc           	      C   r   )zTODO: add doc.

  Args:
    a: A `Tensor` of type `float32`.
    name: A name for the operation (optional).

  Returns:
    The created Operation.
  
FloatInputNr   r   rK   )r   r   r   r   r   r   r   r   r    r!   r"   _dispatcher_for_float_inputr$   float_input_eager_fallbackr&   r'   r(   r)   r   rB  r*   r+   r,   r-   r.   rO   r   r   r=   rB  	  r   zraw_ops.FloatInputc                 C   6   t | tj} | g}d }tjdd||||d}d }|S )Ns
   FloatInputr   rB   r    convert_to_tensorr   r,  r/   r   rS   r   r   r=   rE  V	     
rE  float_outputc           
   
   C   r   )r   FloatOutputNr   r   r   )r   r   r   r   r   r   r   r   r    r!   r"   _dispatcher_for_float_outputr$   float_output_eager_fallbackr&   r'   r(   r)   r   rJ  r*   r+   r,   r-   r.   r/   r0   r1   r2   r3   r   r   r=   rJ  `	  r>   zraw_ops.FloatOutputc                 C   r?   )Ns   FloatOutputrA   rB   rK  rD   rE   r   r   r=   rM  	  r2  rM  FloatOutputStringOutputfloat_output_string_outputc           
   
   C   r<  )zTODO: add doc.

  Args:
    name: A name for the operation (optional).

  Returns:
    A tuple of `Tensor` objects (a, b).

    a: A `Tensor` of type `float32`.
    b: A `Tensor` of type `string`.
  rN  Nr   r   r   )r   r   r   r   r   r   _FloatOutputStringOutputOutputr   r   r   r    r!   r"   *_dispatcher_for_float_output_string_outputr$   )float_output_string_output_eager_fallbackr&   r'   r(   r)   r   rO  r*   r+   r,   r-   r.   r/   r0   r1   r2   r3   r   r   r=   rO  	  x   

zraw_ops.FloatOutputStringOutputc                 C   r@  )Ns   FloatOutputStringOutputr   rB   rN  )r/   r   r0   r2   rP  r   rE   r   r   r=   rR  	  s   
rR  Foo1r:  r7   foo1r   c                 C     t j pt  }|j}|jrzt|d|| ||}t|}|W S  tj	y8 } zt
|| W Y d}~nd}~w tjyA   Y nw zt| |||fd}|turS|W S t| ||||dW S  tjyf   Y q ttfy   ttdt| |||d}|tjjur| Y S  w t| |||fd}|tur|S ztjd| |||d\}}}	}
W n! ttfy   ttdt| |||d}|tjjur| Y S  w |
dd }t rd}|	j}td||| t|}|S )a1  TODO: add doc.

  Args:
    a: A `Tensor` of type `float32`.
    b: A `Tensor` of type `int32`.
    c: A `Tensor` of type `int32`.
    name: A name for the operation (optional).

  Returns:
    A tuple of `Tensor` objects (d, e).

    d: A `Tensor` of type `float32`.
    e: A `Tensor` of type `int32`.
  rT  Nr   r   r   r   r   r   )r   r   r   r   r   r   _Foo1Outputr   r   r   r    r!   r"   _dispatcher_for_foo1r$   foo1_eager_fallbackr&   r'   r(   r)   r   rU  r*   r+   r,   r-   r.   r/   r0   r1   r2   r   r   r   r   r4   r5   r6   r7   r8   r9   r:   r;   r<   r   r   r=   rU  
  x   



zraw_ops.Foo1c                 C   t   t | tj} t |tj}t |tj}| ||g}d }tjdd||||d}t r3td||| t	
|}|S )Ns   Foo1r   rB   rT  )r    rH  r   r,  r   r/   r   r0   r2   rX  r   r   r   r   r   r   r<   r;   r6   r   r   r=   rZ  X
     

rZ  Foo2foo2c                 C   rV  )a3  TODO: add doc.

  Args:
    a: A `Tensor` of type `float32`.
    b: A `Tensor` of type `string`.
    c: A `Tensor` of type `string`.
    name: A name for the operation (optional).

  Returns:
    A tuple of `Tensor` objects (d, e).

    d: A `Tensor` of type `float32`.
    e: A `Tensor` of type `int32`.
  r`  Nr   r   rW  )r   r   r   r   r   r   _Foo2Outputr   r   r   r    r!   r"   _dispatcher_for_foo2r$   foo2_eager_fallbackr&   r'   r(   r)   r   ra  r*   r+   r,   r-   r.   r/   r0   r1   r2   r[  r   r   r=   ra  k
  r\  zraw_ops.Foo2c                 C   r]  )Ns   Foo2r   rB   r`  )r    rH  r   r,  stringr/   r   r0   r2   rb  r   r^  r   r   r=   rd  
  r_  rd  Foo3foo3c                 C   rV  )a4  TODO: add doc.

  Args:
    a: A `Tensor` of type `float32`.
    b: A `Tensor` of type `string`.
    c: A `Tensor` of type `float32`.
    name: A name for the operation (optional).

  Returns:
    A tuple of `Tensor` objects (d, e).

    d: A `Tensor` of type `float32`.
    e: A `Tensor` of type `int32`.
  rf  Nr   r   rW  )r   r   r   r   r   r   _Foo3Outputr   r   r   r    r!   r"   _dispatcher_for_foo3r$   foo3_eager_fallbackr&   r'   r(   r)   r   rg  r*   r+   r,   r-   r.   r/   r0   r1   r2   r[  r   r   r=   rg  
  r\  zraw_ops.Foo3c                 C   st   t | tj} t |tj}t |tj}| ||g}d }tjdd||||d}t r3td||| t	
|}|S )Ns   Foo3r   rB   rf  )r    rH  r   r,  re  r/   r   r0   r2   rh  r   r^  r   r   r=   rj    r_  rj  	func_attrc           	      C   sn  t j pt  }|j}|jr{zt|d|d| }|W S  tjy2 } zt	|| W Y d}~nd}~w tj
y;   Y nw zt| |fd}|turK|W S t| ||dW S  tjy\   Y q ttfyz   ttdt| |d}|tjjury| Y S  w t| |fd}|tur|S ztjd| |d\}}}}W |S  ttfy   ttdt| |d}|tjjur| Y S  w )zTODO: add doc.

  Args:
    f: A function decorated with @Defun.
    name: A name for the operation (optional).

  Returns:
    The created Operation.
  FuncAttrfNrm  r   r   r   rm  r   )r   r   r   r   r   r   r   r   r    r!   r"   _dispatcher_for_func_attrr$   func_attr_eager_fallbackr&   r'   r(   r)   r   rk  r*   r+   r,   r-   r.   	rm  r   r4   r5   r6   r7   r8   r9   r:   r   r   r=   rk  #  sf   
	zraw_ops.FuncAttrc                 C   s*   g }d| f}t jdd||||d}d }|S )Nrm  s   FuncAttrr   rB   r/   r   rm  r   r   r<   r;   r6   r   r   r=   rq  `  s   
rq  func_list_attrc           	      C   s  t j pt  }|j}|jr{zt|d|d| }|W S  tjy2 } zt	|| W Y d}~nd}~w tj
y;   Y nw zt| |fd}|turK|W S t| ||dW S  tjy\   Y q ttfyz   ttdt| |d}|tjjury| Y S  w t| |fd}|tur|S t| ttfstd|  ztjd| |d\}}}}W |S  ttfy   ttdt| |d}|tjjur| Y S  w )zTODO: add doc.

  Args:
    f: A list of functions decorated with @Defun.
    name: A name for the operation (optional).

  Returns:
    The created Operation.
  FuncListAttrrm  Nrn  r   ro  >Expected list for 'f' argument to 'func_list_attr' Op, not %r.)r   r   r   r   r   r   r   r   r    r!   r"   _dispatcher_for_func_list_attrr$   func_list_attr_eager_fallbackr&   r'   r(   r)   r   ru  r*   r+   r,   ri   rj   rk   r-   r.   rr  r   r   r=   ru  i  sr   
	zraw_ops.FuncListAttrc                 C   sD   t | ttfstd|  g }d| f}tjdd||||d}d }|S )Nrw  rm  s   FuncListAttrr   rB   rn   rt  r   r   r=   ry    s   
ry  get_deadlinec           
   
   C   r   )uTODO: add doc.

  Args:
    name: A name for the operation (optional).

  Returns:
    A `Tensor` of type `int64`.
  GetDeadlineNr   r   r   )r   r   r   r   r   r   r   r   r    r!   r"   _dispatcher_for_get_deadliner$   get_deadline_eager_fallbackr&   r'   r(   r)   r   rz  r*   r+   r,   r-   r.   r/   r0   r1   r2   r3   r   r   r=   rz    r>   zraw_ops.GetDeadlinec                 C   r?   )Ns   GetDeadlinerA   rB   r|  rD   rE   r   r   r=   r~    r2  r~  graph_def_versionc           
   
   C   r   )uTODO: add doc.

  Args:
    name: A name for the operation (optional).

  Returns:
    A `Tensor` of type `int32`.
  GraphDefVersionNr   r   r   )r   r   r   r   r   r   r   r   r    r!   r"   !_dispatcher_for_graph_def_versionr$    graph_def_version_eager_fallbackr&   r'   r(   r)   r   r  r*   r+   r,   r-   r.   r/   r0   r1   r2   r3   r   r   r=   r    r>   zraw_ops.GraphDefVersionc                 C   r?   )Ns   GraphDefVersionrA   rB   r  rD   rE   r   r   r=   r  K  r2  r  TV_InPolymorphicTwice_Tin_polymorphic_twicec                 C   s  t j pt  }|j}|jr~zt|d|| |}|W S  tjy2 } zt	|| W Y d}~nd}~w tj
y;   Y nw zt| ||fd}|turL|W S t| |||dW S  tjy^   Y q ttfy}   ttdt| ||d}|tjjur|| Y S  w t| ||fd}|tur|S t| ttfstd|  t| }t|ttfstd| t|}ztjd| ||d\}	}	}
}W |
S  ttfy   ttdt| ||d}|tjjur| Y S  w )zTODO: add doc.

  Args:
    a: A list of `Tensor` objects with the same type.
    b: A list of `Tensor` objects with the same type as `a`.
    name: A name for the operation (optional).

  Returns:
    The created Operation.
  InPolymorphicTwiceNr   r   r   DExpected list for 'a' argument to 'in_polymorphic_twice' Op, not %r.DExpected list for 'b' argument to 'in_polymorphic_twice' Op, not %r.)r   r   r   r   r   r   r   r   r    r!   r"   $_dispatcher_for_in_polymorphic_twicer$   #in_polymorphic_twice_eager_fallbackr&   r'   r(   r)   r   r  r*   r+   r,   ri   rj   rk   r   r-   r.   )r   r   r   r4   r5   r6   r7   r   _attr_Mr8   r9   r:   r   r   r=   r  Y  s   


	zraw_ops.InPolymorphicTwicec                 C   s   t | ttfstd|  t| }t |ttfstd| t|}tt| t| |g tj\}}|d | g||d   }|d d |dd  g }|\} }t| t| }d|d|d|f}	tj	dd||	||d	}
d }
|
S )
Nr  r  rA   r   r   Ms   InPolymorphicTwicer   rB   )
ri   rj   rk   r'   r   r/   r   r   r   r   )r   r   r   r   r   r  r   r   r<   r;   r6   r   r   r=   r    s2   "
r  int64_outputc           
   
   C   r   )r{  Int64OutputNr   r   r   )r   r   r   r   r   r   r   r   r    r!   r"   _dispatcher_for_int64_outputr$   int64_output_eager_fallbackr&   r'   r(   r)   r   r  r*   r+   r,   r-   r.   r/   r0   r1   r2   r3   r   r   r=   r    r>   zraw_ops.Int64Outputc                 C   r?   )Ns   Int64OutputrA   rB   r  rD   rE   r   r   r=   r    r2  r  int_attrfooc                 C     t j pt  }|j}|jr{zt|d|d| }|W S  tjy2 } zt	|| W Y d}~nd}~w tj
y;   Y nw zt| |fd}|turK|W S t| ||dW S  tjy\   Y q ttfyz   ttdt| |d}|tjjury| Y S  w t| |fd}|tur|S | du rd} t| d} ztjd| |d\}}}}W n ttfy   ttdt| |d}|tjjur| Y S  w |dd }t rd|df}	|j}
td|
|	| |\}|S )zTODO: add doc.

  Args:
    foo: An optional `int`. Defaults to `1`.
    name: A name for the operation (optional).

  Returns:
    A `Tensor` of type `int64`.
  IntAttrr  N)r  r   r   r   )r  r   rA   )r   r   r   r   r   r   r   r   r    r!   r"   _dispatcher_for_int_attrr$   int_attr_eager_fallbackr&   r'   r(   r)   r   r  r*   r+   r,   r/   rN   r-   r.   r0   r   r1   r2   )r  r   r4   r5   r6   r7   r8   r9   r:   r;   r<   r   r   r=   r    s|   
zraw_ops.IntAttrc                 C   s\   | d u rd} t | d} g }d| f}t jdd||||d}t  r)t d||| |\}|S )NrA   r  s   IntAttrrB   r  r/   rN   r   r0   r2   )r  r   r   r<   r;   r6   r   r   r=   r  P  s   r  	int_inputc           	      C   r   )zTODO: add doc.

  Args:
    a: A `Tensor` of type `int32`.
    name: A name for the operation (optional).

  Returns:
    The created Operation.
  IntInputNr   r   rK   )r   r   r   r   r   r   r   r   r    r!   r"   _dispatcher_for_int_inputr$   int_input_eager_fallbackr&   r'   r(   r)   r   r  r*   r+   r,   r-   r.   rO   r   r   r=   r  _  r   zraw_ops.IntInputc                 C   rF  )Ns   IntInputr   rB   r    rH  r   r   r/   r   rS   r   r   r=   r    rI  r  int_input_float_inputc           
      C   z  t j pt  }|j}|jr~zt|d|| |}|W S  tjy2 } zt	|| W Y d}~nd}~w tj
y;   Y nw zt| ||fd}|turL|W S t| |||dW S  tjy^   Y q ttfy}   ttdt| ||d}|tjjur|| Y S  w t| ||fd}|tur|S ztjd| ||d\}}}}	W |S  ttfy   ttdt| ||d}|tjjur| Y S  w )zTODO: add doc.

  Args:
    a: A `Tensor` of type `int32`.
    b: A `Tensor` of type `float32`.
    name: A name for the operation (optional).

  Returns:
    The created Operation.
  IntInputFloatInputNr   r   r   )r   r   r   r   r   r   r   r   r    r!   r"   %_dispatcher_for_int_input_float_inputr$   $int_input_float_input_eager_fallbackr&   r'   r(   r)   r   r  r*   r+   r,   r-   r.   
r   r   r   r4   r5   r6   r7   r8   r9   r:   r   r   r=   r    f   


	zraw_ops.IntInputFloatInputc                 C   sF   t | tj} t |tj}| |g}d }tjdd||||d}d }|S )Ns   IntInputFloatInputr   rB   )r    rH  r   r   r,  r/   r   r   r   r   r   r<   r;   r6   r   r   r=   r       
r  int_input_int_outputc                 C     t j pt  }|j}|jrzzt|d|| }|W S  tjy1 } zt	|| W Y d}~nd}~w tj
y:   Y nw zt| |fd}|turJ|W S t| ||dW S  tjy[   Y q ttfyy   ttdt| |d}|tjjurx| Y S  w t| |fd}|tur|S ztjd| |d\}}}}W n ttfy   ttdt| |d}|tjjur| Y S  w |dd }t rd}	|j}
td|
|	| |\}|S )zTODO: add doc.

  Args:
    a: A `Tensor` of type `int32`.
    name: A name for the operation (optional).

  Returns:
    A `Tensor` of type `int32`.
  IntInputIntOutputNr   r   rK   )r   r   r   r   r   r   r   r   r    r!   r"   $_dispatcher_for_int_input_int_outputr$   #int_input_int_output_eager_fallbackr&   r'   r(   r)   r   r  r*   r+   r,   r-   r.   r/   r0   r1   r2   r   r   r   r=   r    v   zraw_ops.IntInputIntOutputc                 C   P   t | tj} | g}d }tjdd||||d}t r#td||| |\}|S )Ns   IntInputIntOutputrA   rB   r  r    rH  r   r   r/   r   r0   r2   rS   r   r   r=   r  4     
r  
int_outputc           
   
   C   r   )r  	IntOutputNr   r   r   )r   r   r   r   r   r   r   r   r    r!   r"   _dispatcher_for_int_outputr$   int_output_eager_fallbackr&   r'   r(   r)   r   r  r*   r+   r,   r-   r.   r/   r0   r1   r2   r3   r   r   r=   r  A  r>   zraw_ops.IntOutputc                 C   r?   )Ns	   IntOutputrA   rB   r  rD   rE   r   r   r=   r    r2  r  IntOutputFloatOutputint_output_float_outputc           
   
   C   r<  )zTODO: add doc.

  Args:
    name: A name for the operation (optional).

  Returns:
    A tuple of `Tensor` objects (a, b).

    a: A `Tensor` of type `int32`.
    b: A `Tensor` of type `float32`.
  r  Nr   r   r   )r   r   r   r   r   r   _IntOutputFloatOutputOutputr   r   r   r    r!   r"   '_dispatcher_for_int_output_float_outputr$   &int_output_float_output_eager_fallbackr&   r'   r(   r)   r   r  r*   r+   r,   r-   r.   r/   r0   r1   r2   r3   r   r   r=   r    rS  zraw_ops.IntOutputFloatOutputc                 C   r@  )Ns   IntOutputFloatOutputr   rB   r  )r/   r   r0   r2   r  r   rE   r   r   r=   r    rA  r  is_resource_handle_ref_countinghandlec                 C   r  )zTODO: add doc.

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

  Returns:
    A `Tensor` of type `bool`.
  IsResourceHandleRefCountingNr   r   r  r   )r   r   r   r   r   r   r   r   r    r!   r"   /_dispatcher_for_is_resource_handle_ref_countingr$   .is_resource_handle_ref_counting_eager_fallbackr&   r'   r(   r)   r   r  r*   r+   r,   r-   r.   r/   r0   r1   r2   r  r   r4   r5   r6   r7   r8   r9   r:   r;   r<   r   r   r=   r    sz   	z#raw_ops.IsResourceHandleRefCountingc                 C   r  )Ns   IsResourceHandleRefCountingrA   rB   r  r    rH  r   resourcer/   r   r0   r2   r  r   r   r<   r;   r6   r   r   r=   r  /     r  is_tensor_float32_enabledc           
   
   C   r   )ztTODO: add doc.

  Args:
    name: A name for the operation (optional).

  Returns:
    A `Tensor` of type `bool`.
  IsTensorFloat32EnabledNr   r   r   )r   r   r   r   r   r   r   r   r    r!   r"   )_dispatcher_for_is_tensor_float32_enabledr$   (is_tensor_float32_enabled_eager_fallbackr&   r'   r(   r)   r   r  r*   r+   r,   r-   r.   r/   r0   r1   r2   r3   r   r   r=   r  =  r>   zraw_ops.IsTensorFloat32Enabledc                 C   r?   )Ns   IsTensorFloat32EnabledrA   rB   r  rD   rE   r   r   r=   r       r  kernel_labelc           
   
   C   r   )r.  KernelLabelNr   r   r   )r   r   r   r   r   r   r   r   r    r!   r"   _dispatcher_for_kernel_labelr$   kernel_label_eager_fallbackr&   r'   r(   r)   r   r  r*   r+   r,   r-   r.   r/   r0   r1   r2   r3   r   r   r=   r    r>   zraw_ops.KernelLabelc                 C   r?   )Ns   KernelLabelrA   rB   r  rD   rE   r   r   r=   r    r2  r  kernel_label_requiredinputc                 C   r  )zTODO: add doc.

  Args:
    input: A `Tensor` of type `int32`.
    name: A name for the operation (optional).

  Returns:
    A `Tensor` of type `string`.
  KernelLabelRequiredNr   r   r  r   )r   r   r   r   r   r   r   r   r    r!   r"   %_dispatcher_for_kernel_label_requiredr$   $kernel_label_required_eager_fallbackr&   r'   r(   r)   r   r  r*   r+   r,   r-   r.   r/   r0   r1   r2   r  r   r4   r5   r6   r7   r8   r9   r:   r;   r<   r   r   r=   r    r  zraw_ops.KernelLabelRequiredc                 C   r  )Ns   KernelLabelRequiredrA   rB   r  r  r  r   r   r<   r;   r6   r   r   r=   r  #  r  r  TV_ListInput_T
list_inputc           
      C     t j pt  }|j}|jrzzt|d|| }|W S  tjy1 } zt	|| W Y d}~nd}~w tj
y:   Y nw zt| |fd}|turJ|W S t| ||dW S  tjy[   Y q ttfyy   ttdt| |d}|tjjurx| Y S  w t| |fd}|tur|S t| ttfstd|  t| }ztjd| |d\}}}}	W |S  ttfy   ttdt| |d}|tjjur| Y S  w )zTODO: add doc.

  Args:
    a: A list of at least 1 `Tensor` objects with the same type.
    name: A name for the operation (optional).

  Returns:
    The created Operation.
  	ListInputNr   r   rK   :Expected list for 'a' argument to 'list_input' Op, not %r.)r   r   r   r   r   r   r   r   r    r!   r"   _dispatcher_for_list_inputr$   list_input_eager_fallbackr&   r'   r(   r)   r   r  r*   r+   r,   ri   rj   rk   r   r-   r.   
r   r   r4   r5   r6   r7   r   r8   r9   r:   r   r   r=   r  2  t   	zraw_ops.ListInputc                 C   sj   t | ttfstd|  t| }tt| |g \}} t| }d|d|f}tjdd||||d}d }|S )Nr  r   r   s	   ListInputr   rB   ri   rj   rk   r'   r   r/   r   r   r   r   r   r   r   r<   r;   r6   r   r   r=   r  t     
r  list_outputc                 C     t j pt  }|j}|jr{zt|d|d| }|W S  tjy2 } zt	|| W Y d}~nd}~w tj
y;   Y nw zt| |fd}|turK|W S t| ||dW S  tjy\   Y q ttfyz   ttdt| |d}|tjjury| Y S  w t| |fd}|tur|S t| ttfstd|  dd	 | D } ztjd| |d\}}}}W n ttfy   ttdt| |d}|tjjur| Y S  w |dd }t rd|df}	|j}
t d|
|	| |S )
zTODO: add doc.

  Args:
    T: A list of `tf.DTypes` that has length `>= 1`.
    name: A name for the operation (optional).

  Returns:
    A list of `Tensor` objects of type `T`.
  
ListOutputr   Nr   r   r   r   r   r   ;Expected list for 'T' argument to 'list_output' Op, not %r.c                 S   r_   r   r   r   r   r   r=   re     rf   zlist_output.<locals>.<listcomp>)!r   r   r   r   r   r   r   r   r    r!   r"   _dispatcher_for_list_outputr$   list_output_eager_fallbackr&   r'   r(   r)   r   r  r*   r+   r,   ri   rj   rk   r-   r.   r/   r0   r   r1   r2   r   r   r4   r5   r6   r7   r8   r9   r:   r;   r<   r   r   r=   r       
zraw_ops.ListOutputc                 C   j   t | ttfstd|  dd | D } g }d| f}tjdt| ||||d}t r3td||| |S )Nr  c                 S   r_   r  r   r   r   r   r=   re     rf   z.list_output_eager_fallback.<locals>.<listcomp>r   s
   ListOutputrB   r  	ri   rj   rk   r'   r/   r   r   r0   r2   r   r   r   r<   r;   r6   r   r   r=   r    "   r  make_weak_resource_handlec                 C   r  )zTODO: add doc.

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

  Returns:
    A `Tensor` of type `resource`.
  MakeWeakResourceHandleNr   r   r  )r   r   r   r   r   r   r   r   r    r!   r"   )_dispatcher_for_make_weak_resource_handler$   (make_weak_resource_handle_eager_fallbackr&   r'   r(   r)   r   r  r*   r+   r,   r-   r.   r/   r0   r1   r2   r  r   r   r=   r    r  zraw_ops.MakeWeakResourceHandlec                 C   r  )Ns   MakeWeakResourceHandlerA   rB   r  r  r  r   r   r=   r  !  r  r  MixedStructmixed_structc                 C   s  t j pt  }|j}|jrzt|d|d| }t|}|W S  tj	y7 } zt
|| W Y d}~nd}~w tjy@   Y nw zt| |fd}|turP|W S t| ||dW S  tjya   Y q ttfy   ttdt| |d}|tjjur~| Y S  w t| |fd}|tur|S t| d} ztjd| |d\}}}}W n ttfy   ttdt| |d}|tjjur| Y S  w |dd }t rd|df}	|j}
t d|
|	| |d|  g|| d  }t|}|S )a   TODO: add doc.

  Args:
    n_a: An `int` that is `>= 0`.
    name: A name for the operation (optional).

  Returns:
    A tuple of `Tensor` objects (a, b).

    a: A list of `n_a` `Tensor` objects with type `int32`.
    b: A `Tensor` of type `float32`.
  r  r   Nr   r   r   r   r   r   )!r   r   r   r   r   r   _MixedStructOutputr   r   r   r    r!   r"   _dispatcher_for_mixed_structr$   mixed_struct_eager_fallbackr&   r'   r(   r)   r   r  r*   r+   r,   r/   rN   r-   r.   r0   r   r1   r2   r   r   r4   r5   r6   r7   r8   r9   r:   r;   r<   r   r   r=   r  3  s|   


zraw_ops.MixedStructc                 C   sr   t | d} g }d| f}t jd| d ||||d}t  r%t d||| |d |  g|| d   }t|}|S )Nr   s   MixedStructrA   rB   r  )r/   rN   r   r0   r2   r  r   r   r   r   r<   r;   r6   r   r   r=   r  ~  s   
r  TV_NInPolymorphicTwice_Tn_in_polymorphic_twicec                 C   r   )	zTODO: add doc.

  Args:
    a: A list of `Tensor` objects with the same type.
    b: A list with the same length as `a` of `Tensor` objects with the same type as `a`.
    name: A name for the operation (optional).

  Returns:
    The created Operation.
  NInPolymorphicTwiceNr   r   r   FExpected list for 'a' argument to 'n_in_polymorphic_twice' Op, not %r.FExpected list for 'b' argument to 'n_in_polymorphic_twice' Op, not %r.eList argument 'b' to 'n_in_polymorphic_twice' Op with length %d must match length %d of argument 'a'.)r   r   r   r   r   r   r   r   r    r!   r"   &_dispatcher_for_n_in_polymorphic_twicer$   %n_in_polymorphic_twice_eager_fallbackr&   r'   r(   r)   r   r  r*   r+   r,   ri   rj   rk   r   r-   r.   r   r   r   r=   r    r   zraw_ops.NInPolymorphicTwicec           
      C   s   t | ttfstd|  t| }t |ttfstd| t||kr.tdt||f tt| t| |g \}}|d | g||d   }|d d |dd  g }|\} }t| t| }d|d|f}tjdd||||d	}	d }	|	S )
Nr  r   r  rA   r   r   s   NInPolymorphicTwicer   rB   	ri   rj   rk   r'   r   r(   r/   r   r   r   r   r   r=   r    s<   

r  
n_in_twicec                 C   r   )	zTODO: add doc.

  Args:
    a: A list of `Tensor` objects with type `int32`.
    b: A list with the same length as `a` of `Tensor` objects with type `string`.
    name: A name for the operation (optional).

  Returns:
    The created Operation.
  NInTwiceNr   r   r   :Expected list for 'a' argument to 'n_in_twice' Op, not %r.:Expected list for 'b' argument to 'n_in_twice' Op, not %r.YList argument 'b' to 'n_in_twice' Op with length %d must match length %d of argument 'a'.)r   r   r   r   r   r   r   r   r    r!   r"   _dispatcher_for_n_in_twicer$   n_in_twice_eager_fallbackr&   r'   r(   r)   r   r  r*   r+   r,   ri   rj   rk   r   r-   r.   r   r   r   r=   r    r   zraw_ops.NInTwicec                 C   s   t | ttfstd|  t| }t |ttfstd| t||kr.tdt||f t| tj	} t|tj
}t| t| }d|f}tjdd||||d}d }|S )Nr  r  r	  r   s   NInTwicer   rB   )ri   rj   rk   r'   r   r(   r    convert_n_to_tensorr   r   re  r/   r   )r   r   r   r   r   r<   r;   r6   r   r   r=   r  A  s8   

r  TV_NInTwoTypeVariables_STV_NInTwoTypeVariables_Tn_in_two_type_variablesc                 C   r   )	zTODO: add doc.

  Args:
    a: A list of `Tensor` objects with the same type.
    b: A list with the same length as `a` of `Tensor` objects with the same type.
    name: A name for the operation (optional).

  Returns:
    The created Operation.
  NInTwoTypeVariablesNr   r   r   GExpected list for 'a' argument to 'n_in_two_type_variables' Op, not %r.GExpected list for 'b' argument to 'n_in_two_type_variables' Op, not %r.fList argument 'b' to 'n_in_two_type_variables' Op with length %d must match length %d of argument 'a'.)r   r   r   r   r   r   r   r   r    r!   r"   '_dispatcher_for_n_in_two_type_variablesr$   &n_in_two_type_variables_eager_fallbackr&   r'   r(   r)   r   r  r*   r+   r,   ri   rj   rk   r   r-   r.   r   r   r   r=   r  ]  r   zraw_ops.NInTwoTypeVariablesc           
      C   s   t | ttfstd|  t| }t |ttfstd| t||kr.tdt||f tt| |g \}} tt||g \}}t| t| }d|d|d|f}tjdd||||d	}	d }	|	S )
Nr  r  r  Sr   r   s   NInTwoTypeVariablesr   rB   r  )
r   r   r   r   r   Z_attr_Sr   r<   r;   r6   r   r   r=   r    s8   

r  	n_ints_inc           
      C   r  )zTODO: add doc.

  Args:
    a: A list of at least 2 `Tensor` objects with type `int32`.
    name: A name for the operation (optional).

  Returns:
    The created Operation.
  NIntsInNr   r   rK   9Expected list for 'a' argument to 'n_ints_in' Op, not %r.)r   r   r   r   r   r   r   r   r    r!   r"   _dispatcher_for_n_ints_inr$   n_ints_in_eager_fallbackr&   r'   r(   r)   r   r  r*   r+   r,   ri   rj   rk   r   r-   r.   r  r   r   r=   r    r  zraw_ops.NIntsInc                 C   s^   t | ttfstd|  t| }t| tj} t| }d|f}t	j
dd||||d}d }|S )Nr  r   s   NIntsInr   rB   )ri   rj   rk   r'   r   r    r  r   r   r/   r   )r   r   r   r   r<   r;   r6   r   r   r=   r    s   r  
n_ints_outr   c                 C     t j pt  }|j}|jr{zt|d|d| }|W S  tjy2 } zt	|| W Y d}~nd}~w tj
y;   Y nw zt| |fd}|turK|W S t| ||dW S  tjy\   Y q ttfyz   ttdt| |d}|tjjury| Y S  w t| |fd}|tur|S t| d} ztjd| |d\}}}}W n ttfy   ttdt| |d}|tjjur| Y S  w |dd }t rd|df}	|j}
td|
|	| |S )zTODO: add doc.

  Args:
    N: An `int` that is `>= 2`.
    name: A name for the operation (optional).

  Returns:
    A list of `N` `Tensor` objects with type `int32`.
  NIntsOutr   Nr   r   r   r   r   r   )r   r   r   r   r   r   r   r   r    r!   r"   _dispatcher_for_n_ints_outr$   n_ints_out_eager_fallbackr&   r'   r(   r)   r   r  r*   r+   r,   r/   rN   r-   r.   r0   r   r1   r2   r   r   r4   r5   r6   r7   r8   r9   r:   r;   r<   r   r   r=   r    v   
zraw_ops.NIntsOutc                 C   J   t | d} g }d| f}t jd| ||||d}t  r#t d||| |S )Nr   s   NIntsOutrB   r  r  r   r   r   r<   r;   r6   r   r   r=   r"  X     
r"  n_ints_out_defaultr  c                 C   s  t j pt  }|j}|jr{zt|d|d| }|W S  tjy2 } zt	|| W Y d}~nd}~w tj
y;   Y nw zt| |fd}|turK|W S t| ||dW S  tjy\   Y q ttfyz   ttdt| |d}|tjjury| Y S  w t| |fd}|tur|S | du rd} t| d} ztjd| |d\}}}}W n ttfy   ttdt| |d}|tjjur| Y S  w |dd }t rd|df}	|j}
td|
|	| |S )zTODO: add doc.

  Args:
    N: An optional `int` that is `>= 2`. Defaults to `3`.
    name: A name for the operation (optional).

  Returns:
    A list of `N` `Tensor` objects with type `int32`.
  NIntsOutDefaultr   Nr  r   r   r  )r   r   r   r   r   r   r   r   r    r!   r"   "_dispatcher_for_n_ints_out_defaultr$   !n_ints_out_default_eager_fallbackr&   r'   r(   r)   r   r(  r*   r+   r,   r/   rN   r-   r.   r0   r   r1   r2   r#  r   r   r=   r(  d  sz   
zraw_ops.NIntsOutDefaultc                 C   sV   | d u rd} t | d} g }d| f}t jd| ||||d}t  r)t d||| |S )Nr  r   s   NIntsOutDefaultrB   r)  r  r&  r   r   r=   r+    s   
r+  TV_NPolymorphicIn_Tn_polymorphic_inc           
      C   r  )zTODO: add doc.

  Args:
    a: A list of at least 2 `Tensor` objects with the same type.
    name: A name for the operation (optional).

  Returns:
    The created Operation.
  NPolymorphicInNr   r   rK   @Expected list for 'a' argument to 'n_polymorphic_in' Op, not %r.)r   r   r   r   r   r   r   r   r    r!   r"    _dispatcher_for_n_polymorphic_inr$   n_polymorphic_in_eager_fallbackr&   r'   r(   r)   r   r-  r*   r+   r,   ri   rj   rk   r   r-   r.   r  r   r   r=   r-    r  zraw_ops.NPolymorphicInc                 C   sj   t | ttfstd|  t| }tt| |g \}} t| }d|d|f}tjdd||||d}d }|S )Nr/  r   r   s   NPolymorphicInr   rB   r  r  r   r   r=   r1    r  r1  TV_NPolymorphicOut_Tn_polymorphic_outr   c                 C     t j pt  }|j}|jrz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| ||fd}|turN|W S t| |||dW S  tjy`   Y q ttfy   ttdt| ||d}|tjjur~| Y S  w t| ||fd}|tur|S t| d} t|d}ztjd| ||d\}}}}	W n  ttfy   ttdt| ||d}|tjjur| Y S  w |	dd }t rd|dd|df}
|j}t d||
| |S )zTODO: add doc.

  Args:
    T: A `tf.DType`.
    N: An `int` that is `>= 2`.
    name: A name for the operation (optional).

  Returns:
    A list of `N` `Tensor` objects with type `T`.
  NPolymorphicOutr   r   Nr   r   r   r   r   r   r   r   )!r   r   r   r   r   r   r   r   r    r!   r"   !_dispatcher_for_n_polymorphic_outr$    n_polymorphic_out_eager_fallbackr&   r'   r(   r)   r   r3  r*   r+   r,   r/   r   rN   r-   r.   r0   r   r   r1   r2   r   r   r   r4   r5   r6   r7   r8   r9   r:   r;   r<   r   r   r=   r3    x   

zraw_ops.NPolymorphicOutc                 C   Z   t | d} t |d}g }d| d|f}t jd|||||d}t  r+t d||| |S )Nr   r   s   NPolymorphicOutrB   r5  r/   r   rN   r   r0   r2   r   r   r   r   r<   r;   r6   r   r   r=   r9  U  s   
r9  TV_NPolymorphicOutDefault_Tn_polymorphic_out_defaultc                 C   s  t j pt  }|j}|jrz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| ||fd}|turN|W S t| |||dW S  tjy`   Y q ttfy   ttdt| ||d}|tjjur~| Y S  w t| ||fd}|tur|S | du rtj} t| d} |du rd}t|d}ztjd| ||d\}}}}	W n  ttfy   ttdt| ||d}|tjjur| Y S  w |	dd }t rd|dd| df}
|j!}t"d||
| |S )	zTODO: add doc.

  Args:
    T: An optional `tf.DType`. Defaults to `tf.bool`.
    N: An optional `int` that is `>= 2`. Defaults to `2`.
    name: A name for the operation (optional).

  Returns:
    A list of `N` `Tensor` objects with type `T`.
  NPolymorphicOutDefaultr   r   Nr6  r   r7  r   )#r   r   r   r   r   r   r   r   r    r!   r"   )_dispatcher_for_n_polymorphic_out_defaultr$   (n_polymorphic_out_default_eager_fallbackr&   r'   r(   r)   r   r@  r*   r+   r,   r   boolr/   r   rN   r-   r.   r0   r   r   r1   r2   r:  r   r   r=   r@  d  s   

zraw_ops.NPolymorphicOutDefaultc                 C   st   | d u rt j} t| d} |d u rd}t|d}g }d| d|f}tjd|||||d}t r8td||| |S )Nr   r   r   s   NPolymorphicOutDefaultrB   rA  )r   rD  r/   r   rN   r   r0   r2   r>  r   r   r=   rC    s"   rC  TV_NPolymorphicRestrictIn_Tn_polymorphic_restrict_inc           
      C   r  )zTODO: add doc.

  Args:
    a: A list of at least 2 `Tensor` objects with the same type in: `string`, `bool`.
    name: A name for the operation (optional).

  Returns:
    The created Operation.
  NPolymorphicRestrictInNr   r   rK   IExpected list for 'a' argument to 'n_polymorphic_restrict_in' Op, not %r.)r   r   r   r   r   r   r   r   r    r!   r"   )_dispatcher_for_n_polymorphic_restrict_inr$   (n_polymorphic_restrict_in_eager_fallbackr&   r'   r(   r)   r   rF  r*   r+   r,   ri   rj   rk   r   r-   r.   r  r   r   r=   rF    r  zraw_ops.NPolymorphicRestrictInc                 C   sr   t | ttfstd|  t| }tt| |tjtj	g\}} t| }d|d|f}tj
dd||||d}d }|S )NrH  r   r   s   NPolymorphicRestrictInr   rB   )ri   rj   rk   r'   r   r/   r   r   re  rD  r   r  r   r   r=   rJ    s    rJ  TV_NPolymorphicRestrictOut_Tn_polymorphic_restrict_outc                 C   r4  )zTODO: add doc.

  Args:
    T: A `tf.DType` from: `tf.string, tf.bool`.
    N: An `int` that is `>= 2`.
    name: A name for the operation (optional).

  Returns:
    A list of `N` `Tensor` objects with type `T`.
  NPolymorphicRestrictOutr   r   Nr6  r   r7  )!r   r   r   r   r   r   r   r   r    r!   r"   *_dispatcher_for_n_polymorphic_restrict_outr$   )n_polymorphic_restrict_out_eager_fallbackr&   r'   r(   r)   r   rL  r*   r+   r,   r/   r   rN   r-   r.   r0   r   r   r1   r2   r:  r   r   r=   rL    r;  zraw_ops.NPolymorphicRestrictOutc                 C   r<  )Nr   r   s   NPolymorphicRestrictOutrB   rM  r=  r>  r   r   r=   rO  ^  s   rO  Namespace_TestStringOutputZoutput1Zoutput2namespace_test_string_outputc                 C     t j pt  }|j}|jrzt|d|| }t|}|W S  tj	y6 } zt
|| W Y d}~nd}~w tjy?   Y nw zt| |fd}|turO|W S t| ||dW S  tjy`   Y q ttfy~   ttdt| |d}|tjjur}| Y S  w t| |fd}|tur|S ztjd| |d\}}}}W n ttfy   ttdt| |d}|tjjur| Y S  w |dd }t rd}	|j}
td|
|	| t|}|S )  TODO: add doc.

  Args:
    input: A `Tensor` of type `float32`.
    name: A name for the operation (optional).

  Returns:
    A tuple of `Tensor` objects (output1, output2).

    output1: A `Tensor` of type `float32`.
    output2: A `Tensor` of type `string`.
  Namespace>TestStringOutputNr   r   r  )r   r   r   r   r   r   !_Namespace_TestStringOutputOutputr   r   r   r    r!   r"   ,_dispatcher_for_namespace_test_string_outputr$   +namespace_test_string_output_eager_fallbackr&   r'   r(   r)   r   rQ  r*   r+   r,   r-   r.   r/   r0   r1   r2   r  r   r   r=   rQ  p  x   

z"raw_ops.Namespace_TestStringOutputc                 C   T   t | tj} | g}d }tjdd||||d}t r#td||| t	|}|S )Ns   Namespace>TestStringOutputr   rB   rT  )
r    rH  r   r,  r/   r   r0   r2   rU  r   r  r   r   r=   rW    s   
rW  nonec              
   C   ^  t j pt  }|j}|jrvz
t|d| }|W S  tjy0 } zt	||  W Y d}~nd}~w tj
y9   Y nw zt| fd}|turH|W S t| |dW S  tjyX   Y q ttfyu   ttdt| d}|tjjurt| Y S  w t| fd}|tur|S ztjd| d\}}}}W |S  ttfy   ttdt| d}|tjjur| Y S  w )pTODO: add doc.

  Args:
    name: A name for the operation (optional).

  Returns:
    The created Operation.
  NoneNr   r   r   )r   r   r   r   r   r   r   r   r    r!   r"   _dispatcher_for_noner$   none_eager_fallbackr&   r'   r(   r)   r   rZ  r*   r+   r,   r-   r.   r   r4   r5   r6   r7   r8   r9   r:   r   r   r=   rZ    f   	zraw_ops.None_c                 C   &   g }d }t jdd|||| d}d }|S )Ns   Noner   rB   rs  rE   r   r   r=   r_       r_  oldc              
   C   r[  )r\  OldNr   r   r   )r   r   r   r   r   r   r   r   r    r!   r"   _dispatcher_for_oldr$   old_eager_fallbackr&   r'   r(   r)   r   rd  r*   r+   r,   r-   r.   r`  r   r   r=   rd    ra  zraw_ops.Oldc                 C   rb  )Ns   Oldr   rB   rs  rE   r   r   r=   rg  H  rc  rg  op_with_default_attrdefault_floatc                 C   r  )zTODO: add doc.

  Args:
    default_float: An optional `float`. Defaults to `123`.
    name: A name for the operation (optional).

  Returns:
    A `Tensor` of type `int32`.
  OpWithDefaultAttrri  N)ri  r   r   r   )ri  r   r  )r   r   r   r   r   r   r   r   r    r!   r"   $_dispatcher_for_op_with_default_attrr$   #op_with_default_attr_eager_fallbackr&   r'   r(   r)   r   rh  r*   r+   r,   r/   r{   r-   r.   r0   r   r1   r2   )ri  r   r4   r5   r6   r7   r8   r9   r:   r;   r<   r   r   r=   rh  Q  s   
	zraw_ops.OpWithDefaultAttrc                 C   s\   | d u rd} t | d} g }d| f}t jdd||||d}t  r)t d||| |\}|S )Nr  ri  s   OpWithDefaultAttrrA   rB   rj  )r/   r{   r   r0   r2   )ri  r   r   r<   r;   r6   r   r   r=   rl    s   
rl  op_with_future_default_attrc              
   C   r[  )r\  OpWithFutureDefaultAttrNr   r   r   )r   r   r   r   r   r   r   r   r    r!   r"   +_dispatcher_for_op_with_future_default_attrr$   *op_with_future_default_attr_eager_fallbackr&   r'   r(   r)   r   rm  r*   r+   r,   r-   r.   r`  r   r   r=   rm    ra  zraw_ops.OpWithFutureDefaultAttrc                 C   rb  )Ns   OpWithFutureDefaultAttrr   rB   rs  rE   r   r   r=   rp    s   rp  	TV_OutT_Tout_tc                 C     t j pt  }|j}|jr{zt|d|d| }|W S  tjy2 } zt	|| W Y d}~nd}~w tj
y;   Y nw zt| |fd}|turK|W S t| ||dW S  tjy\   Y q ttfyz   ttdt| |d}|tjjury| Y S  w t| |fd}|tur|S t| d} ztjd| |d\}}}}W n ttfy   ttdt| |d}|tjjur| Y S  w |dd }t rd|df}	|j}
td|
|	| |\}|S )TODO: add doc.

  Args:
    T: A `tf.DType`.
    name: A name for the operation (optional).

  Returns:
    A `Tensor` of type `T`.
  OutTr   Nr  r   r  )r   r   r   r   r   r   r   r   r    r!   r"   _dispatcher_for_out_tr$   out_t_eager_fallbackr&   r'   r(   r)   r   rr  r*   r+   r,   r/   r   r-   r.   r0   r   r1   r2   r  r   r   r=   rr    x   
zraw_ops.OutTc                 C   P   t | d} g }d| f}t jdd||||d}t  r#t d||| |\}|S )Nr   s   OutTrA   rB   ru  r/   r   r   r0   r2   r  r   r   r=   rw  8  s   rw  out_type_listc                 C   r  )
zTODO: add doc.

  Args:
    T: A list of `tf.DTypes`.
    name: A name for the operation (optional).

  Returns:
    A list of `Tensor` objects of type `T`.
  OutTypeListr   Nr  r   r  =Expected list for 'T' argument to 'out_type_list' Op, not %r.c                 S   r_   r  r   r   r   r   r=   re   w  rf   z!out_type_list.<locals>.<listcomp>)!r   r   r   r   r   r   r   r   r    r!   r"   _dispatcher_for_out_type_listr$   out_type_list_eager_fallbackr&   r'   r(   r)   r   r{  r*   r+   r,   ri   rj   rk   r-   r.   r/   r0   r   r1   r2   r  r   r   r=   r{  E  r  zraw_ops.OutTypeListc                 C   r  )Nr}  c                 S   r_   r  r   r   r   r   r=   re     rf   z0out_type_list_eager_fallback.<locals>.<listcomp>r   s   OutTypeListrB   r|  r  r  r   r   r=   r    r  r  out_type_list_restrictc                 C   r  )
zTODO: add doc.

  Args:
    t: A list of `tf.DTypes` from: `tf.string, tf.bool` that has length `>= 1`.
    name: A name for the operation (optional).

  Returns:
    A list of `Tensor` objects of type `t`.
  OutTypeListRestricttN)r  r   r   r   )r  r   FExpected list for 't' argument to 'out_type_list_restrict' Op, not %r.c                 S   r_   r  r   r   r   r   r=   re     rf   z*out_type_list_restrict.<locals>.<listcomp>)!r   r   r   r   r   r   r   r   r    r!   r"   &_dispatcher_for_out_type_list_restrictr$   %out_type_list_restrict_eager_fallbackr&   r'   r(   r)   r   r  r*   r+   r,   ri   rj   rk   r-   r.   r/   r0   r   r1   r2   )r  r   r4   r5   r6   r7   r8   r9   r:   r;   r<   r   r   r=   r    r  zraw_ops.OutTypeListRestrictc                 C   r  )Nr  c                 S   r_   r  r   r   r   r   r=   re     rf   z9out_type_list_restrict_eager_fallback.<locals>.<listcomp>r  s   OutTypeListRestrictrB   r  r  )r  r   r   r<   r;   r6   r   r   r=   r    s$   r  TV_Polymorphic_Tpolymorphicc                 C   r   )r   PolymorphicNr   r   rK   r   )r   r   r   r   r   r   r   r   r    r!   r"   _dispatcher_for_polymorphicr$   polymorphic_eager_fallbackr&   r'   r(   r)   r   r  r*   r+   r,   r-   r.   r/   r0   r   r1   r2   r   r   r   r=   r    r   zraw_ops.Polymorphicc                 C   r   )Nr   s   PolymorphicrA   rB   r  r   r   r   r   r=   r  ?  s   
r  TV_PolymorphicDefaultOut_Tpolymorphic_default_outc                 C   s  t j pt  }|j}|jr{zt|d|d| }|W S  tjy2 } zt	|| W Y d}~nd}~w tj
y;   Y nw zt| |fd}|turK|W S t| ||dW S  tjy\   Y q ttfyz   ttdt| |d}|tjjury| Y S  w t| |fd}|tur|S | du rtj} t| d} ztjd| |d\}}}}W n ttfy   ttdt| |d}|tjjur| Y S  w |dd }t rd|df}	|j}
t d|
|	| |\}|S )zTODO: add doc.

  Args:
    T: An optional `tf.DType`. Defaults to `tf.string`.
    name: A name for the operation (optional).

  Returns:
    A `Tensor` of type `T`.
  PolymorphicDefaultOutr   Nr  r   r  )!r   r   r   r   r   r   r   r   r    r!   r"   '_dispatcher_for_polymorphic_default_outr$   &polymorphic_default_out_eager_fallbackr&   r'   r(   r)   r   r  r*   r+   r,   r   re  r/   r   r-   r.   r0   r   r1   r2   r  r   r   r=   r  N  s|   
zraw_ops.PolymorphicDefaultOutc                 C   s^   | d u rt j} t| d} g }d| f}tjdd||||d}t r*td||| |\}|S )Nr   s   PolymorphicDefaultOutrA   rB   r  )r   re  r/   r   r   r0   r2   r  r   r   r=   r    s   
r  TV_PolymorphicOut_Tpolymorphic_outc                 C   rs  )rt  PolymorphicOutr   Nr  r   r  )r   r   r   r   r   r   r   r   r    r!   r"   _dispatcher_for_polymorphic_outr$   polymorphic_out_eager_fallbackr&   r'   r(   r)   r   r  r*   r+   r,   r/   r   r-   r.   r0   r   r1   r2   r  r   r   r=   r    rx  zraw_ops.PolymorphicOutc                 C   ry  )Nr   s   PolymorphicOutrA   rB   r  rz  r  r   r   r=   r       
r  
TV_RefIn_Tref_inc                 C   s   t j pt  }|j}|jrtdt| |fd}|tur|S ztjd| |d\}}}}W |S  t	t
fyL   ttdt| |d}|tjjurK| Y S  w )zTODO: add doc.

  Args:
    a: A mutable `Tensor`.
    name: A name for the operation (optional).

  Returns:
    The created Operation.
  =ref_in op does not support eager execution. Arg 'a' is a ref.NRefInrK   r   )r   r   r   r   RuntimeError_dispatcher_for_ref_inr$   r-   r.   r'   r(   r)   r   r  r*   r+   r,   )r   r   r4   r5   r6   r8   r9   r:   r   r   r=   r    s,   	zraw_ops.RefInc                 C      t d)Nr  r  rJ   r   r   r=   ref_in_eager_fallback"     r  ref_input_float_inputc           	      C      t j pt  }|j}|jrtdt| ||fd}|tur|S ztjd| ||d\}}}}W |S  t	t
fyO   ttdt| ||d}|tjjurN| Y S  w )zTODO: add doc.

  Args:
    a: A `Tensor` of type mutable `float32`.
    b: A `Tensor` of type `float32`.
    name: A name for the operation (optional).

  Returns:
    The created Operation.
  Lref_input_float_input op does not support eager execution. Arg 'a' is a ref.NRefInputFloatInputr   r   )r   r   r   r   r  %_dispatcher_for_ref_input_float_inputr$   r-   r.   r'   r(   r)   r   r  r*   r+   r,   	r   r   r   r4   r5   r6   r8   r9   r:   r   r   r=   r  %  ,   
	zraw_ops.RefInputFloatInputc                 C   r  )Nr  r  r   r   r   r   r   r   r=   $ref_input_float_input_eager_fallbackL  r  r   ref_input_float_input_int_outputc                 C   s   t j pt  }|j}|jrtdt| ||fd}|tur|S ztjd| ||d\}}}}W n  t	t
fyN   ttdt| ||d}|tjjurM| Y S  w |dd }t rfd}	|j}
td|
|	| |\}|S )zTODO: add doc.

  Args:
    a: A `Tensor` of type mutable `float32`.
    b: A `Tensor` of type `float32`.
    name: A name for the operation (optional).

  Returns:
    A `Tensor` of type `int32`.
  Wref_input_float_input_int_output op does not support eager execution. Arg 'a' is a ref.NRefInputFloatInputIntOutputr   r   )r   r   r   r   r  0_dispatcher_for_ref_input_float_input_int_outputr$   r-   r.   r'   r(   r)   r   r  r*   r+   r,   r/   r0   r1   r2   )r   r   r   r4   r5   r6   r8   r9   r:   r;   r<   r   r   r=   r  O  s<   
z#raw_ops.RefInputFloatInputIntOutputc                 C   r  )Nr  r  r  r   r   r=   /ref_input_float_input_int_output_eager_fallback~  r  r  ref_input_int_inputc           	      C   r  )zTODO: add doc.

  Args:
    a: A `Tensor` of type mutable `int32`.
    b: A `Tensor` of type `int32`.
    name: A name for the operation (optional).

  Returns:
    The created Operation.
  Jref_input_int_input op does not support eager execution. Arg 'a' is a ref.NRefInputIntInputr   r   )r   r   r   r   r  #_dispatcher_for_ref_input_int_inputr$   r-   r.   r'   r(   r)   r   r  r*   r+   r,   r  r   r   r=   r    r  zraw_ops.RefInputIntInputc                 C   r  )Nr  r  r  r   r   r=   "ref_input_int_input_eager_fallback  r  r  TV_RefOut_Tref_outc           
      C   s   t j pt  }|j}|jrtdt| |fd}|tur|S t| d} zt	j
d| |d\}}}}W n ttfyQ   ttdt| |d}|tjjurP| Y S  w |dd }t rnd|df}|j}	td|	|| |\}|S )zTODO: add doc.

  Args:
    T: A `tf.DType`.
    name: A name for the operation (optional).

  Returns:
    A mutable `Tensor` of type `T`.
  >ref_out op does not support eager execution. Arg 'a' is a ref.Nr   RefOutr  r   )r   r   r   r   r  _dispatcher_for_ref_outr$   r/   r   r-   r.   r'   r(   r)   r   r  r*   r+   r,   r0   r   r1   r2   )
r   r   r4   r5   r6   r8   r9   r:   r;   r<   r   r   r=   r    s>   zraw_ops.RefOutc                 C   r  )Nr  r  r  r   r   r=   ref_out_eager_fallback  r  r  
ref_outputc           	   
   C   s   t j pt  }|j}|jrtdt| fd}|tur|S ztjd| d\}}}}W n t	t
fyH   ttdt| d}|tjjurG| Y S  w |dd }t r`d}|j}td||| |\}|S )z}TODO: add doc.

  Args:
    name: A name for the operation (optional).

  Returns:
    A `Tensor` of type mutable `int32`.
  Aref_output op does not support eager execution. Arg 'a' is a ref.N	RefOutputr   r   )r   r   r   r   r  _dispatcher_for_ref_outputr$   r-   r.   r'   r(   r)   r   r  r*   r+   r,   r/   r0   r1   r2   	r   r4   r5   r6   r8   r9   r:   r;   r<   r   r   r=   r    s<   zraw_ops.RefOutputc                 C   r  )Nr  r  r   r   r   r=   ref_output_eager_fallback  r  r  RefOutputFloatOutputref_output_float_outputc           	   
   C   s   t j pt  }|j}|jrtdt| fd}|tur|S ztjd| d\}}}}W n t	t
fyH   ttdt| d}|tjjurG| Y S  w |dd }t r`d}|j}td||| t|}|S )zTODO: add doc.

  Args:
    name: A name for the operation (optional).

  Returns:
    A tuple of `Tensor` objects (a, b).

    a: A `Tensor` of type mutable `float32`.
    b: A `Tensor` of type `float32`.
  Nref_output_float_output op does not support eager execution. Arg 'a' is a ref.Nr  r   r   )r   r   r   r   r  '_dispatcher_for_ref_output_float_outputr$   r-   r.   r'   r(   r)   r   r  r*   r+   r,   r/   r0   r1   r2   _RefOutputFloatOutputOutputr   r  r   r   r=   r    s<   
zraw_ops.RefOutputFloatOutputc                 C   r  )Nr  r  r   r   r   r=   &ref_output_float_output_eager_fallbackC  r  r  requires_older_graph_versionc           
   
   C   r   )r  RequiresOlderGraphVersionNr   r   r   )r   r   r   r   r   r   r   r   r    r!   r"   ,_dispatcher_for_requires_older_graph_versionr$   +requires_older_graph_version_eager_fallbackr&   r'   r(   r)   r   r  r*   r+   r,   r-   r.   r/   r0   r1   r2   r3   r   r   r=   r  F  r>   z!raw_ops.RequiresOlderGraphVersionc                 C   r?   )Ns   RequiresOlderGraphVersionrA   rB   r  rD   rE   r   r   r=   r    r  r  reserved_attrrangec           	      C   rH   )zTODO: add doc.

  Args:
    range: An `int`.
    name: A name for the operation (optional).

  Returns:
    The created Operation.
  ReservedAttrr  N)r  r   r   r   )r  r   )r   r   r   r   r   r   r   r   r    r!   r"   _dispatcher_for_reserved_attrr$   reserved_attr_eager_fallbackr&   r'   r(   r)   r   r  r*   r+   r,   r/   rN   r-   r.   )	r  r   r4   r5   r6   r7   r8   r9   r:   r   r   r=   r    rP   zraw_ops.ReservedAttrc                 C   rQ   )Nr  s   ReservedAttrr   rB   rR   )r  r   r   r<   r;   r6   r   r   r=   r    rZ   r  reserved_inputc           	      C   r   )zTODO: add doc.

  Args:
    input: A `Tensor` of type `int32`.
    name: A name for the operation (optional).

  Returns:
    The created Operation.
  ReservedInputNr   r   r  )r   r   r   r   r   r   r   r   r    r!   r"   _dispatcher_for_reserved_inputr$   reserved_input_eager_fallbackr&   r'   r(   r)   r   r  r*   r+   r,   r-   r.   )	r  r   r4   r5   r6   r7   r8   r9   r:   r   r   r=   r    r   zraw_ops.ReservedInputc                 C   rF  )Ns   ReservedInputr   rB   r  r  r   r   r=   r    rI  r  resource_create_opr  c           	      C   r   )TODO: add doc.

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

  Returns:
    The created Operation.
  ResourceCreateOpNr   r   r  r   )r   r   r   r   r   r   r   r   r    r!   r"   "_dispatcher_for_resource_create_opr$   !resource_create_op_eager_fallbackr&   r'   r(   r)   r   r  r*   r+   r,   r-   r.   	r  r   r4   r5   r6   r7   r8   r9   r:   r   r   r=   r  &  r   zraw_ops.ResourceCreateOpc                 C   rF  )Ns   ResourceCreateOpr   rB   r    rH  r   r  r/   r   r  r   r   r<   r;   r6   r   r   r=   r  c  rI  r  resource_initialized_opc                 C   r  )zTODO: add doc.

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

  Returns:
    A `Tensor` of type `bool`.
  ResourceInitializedOpNr   r   r  )r   r   r   r   r   r   r   r   r    r!   r"   '_dispatcher_for_resource_initialized_opr$   &resource_initialized_op_eager_fallbackr&   r'   r(   r)   r   r  r*   r+   r,   r-   r.   r/   r0   r1   r2   )r  r   r4   r5   r6   r7   r8   r9   r:   r;   r<   r   r   r=   r  m  r  zraw_ops.ResourceInitializedOpc                 C   r  )Ns   ResourceInitializedOprA   rB   r  r  r  r   r   r=   r    r  r  resource_using_opc           	      C   r   )r  ResourceUsingOpNr   r   r  )r   r   r   r   r   r   r   r   r    r!   r"   !_dispatcher_for_resource_using_opr$    resource_using_op_eager_fallbackr&   r'   r(   r)   r   r  r*   r+   r,   r-   r.   r  r   r   r=   r    r   zraw_ops.ResourceUsingOpc                 C   rF  )Ns   ResourceUsingOpr   rB   r  r  r   r   r=   r    rI  r  TV_Restrict_Trestrictc                 C   r   )zTODO: add doc.

  Args:
    a: A `Tensor`. Must be one of the following types: `string`, `bool`.
    name: A name for the operation (optional).

  Returns:
    A `Tensor`. Has the same type as `a`.
  RestrictNr   r   rK   r   )r   r   r   r   r   r   r   r   r    r!   r"   _dispatcher_for_restrictr$   restrict_eager_fallbackr&   r'   r(   r)   r   r  r*   r+   r,   r-   r.   r/   r0   r   r1   r2   r   r   r   r=   r    r   zraw_ops.Restrictc                 C   sd   t | g|tjtjg\}\} | g}d|f}t jdd||||d}t  r-t d||| |\}|S )Nr   s   RestrictrA   rB   r  )r/   r   r   re  rD  r   r0   r2   r   r   r   r=   r  M  s   
r  simplec                 C   r  )zTODO: add doc.

  Args:
    a: A `Tensor` of type `int32`.
    name: A name for the operation (optional).

  Returns:
    A `Tensor` of type `float32`.
  SimpleNr   r   rK   )r   r   r   r   r   r   r   r   r    r!   r"   _dispatcher_for_simpler$   simple_eager_fallbackr&   r'   r(   r)   r   r  r*   r+   r,   r-   r.   r/   r0   r1   r2   r   r   r   r=   r  Z  r  zraw_ops.Simplec                 C   r  )Ns   SimplerA   rB   r  r  rS   r   r   r=   r    s   r  simple_structc                 C   r  )zTODO: add doc.

  Args:
    n_a: An `int` that is `>= 0`.
    name: A name for the operation (optional).

  Returns:
    A list of `n_a` `Tensor` objects with type `int32`.
  SimpleStructr   Nr  r   r  )r   r   r   r   r   r   r   r   r    r!   r"   _dispatcher_for_simple_structr$   simple_struct_eager_fallbackr&   r'   r(   r)   r   r  r*   r+   r,   r/   rN   r-   r.   r0   r   r1   r2   r  r   r   r=   r    r$  zraw_ops.SimpleStructc                 C   r%  )Nr   s   SimpleStructrB   r  r  r  r   r   r=   r    r'  r  TV_SleepIdentityOp_Tsleep_identity_opsleep_secondsc                 C   r   )zTODO: add doc.

  Args:
    sleep_seconds: A `Tensor` of type `int32`.
    input: A `Tensor`.
    name: A name for the operation (optional).

  Returns:
    A `Tensor`. Has the same type as `input`.
  SleepIdentityOpNr   r   )r  r  r   r   )r   r   r   r   r   r   r   r   r    r!   r"   !_dispatcher_for_sleep_identity_opr$    sleep_identity_op_eager_fallbackr&   r'   r(   r)   r   r  r*   r+   r,   r-   r.   r/   r0   r   r1   r2   )r  r  r   r4   r5   r6   r7   r8   r9   r:   r;   r<   r   r   r=   r    s   

	
zraw_ops.SleepIdentityOpc                 C   sl   t |g|g \}\}t| tj} | |g}d|f}t jdd||||d}t  r1t d||| |\}|S )Nr   s   SleepIdentityOprA   rB   r  )	r/   r   r    rH  r   r   r   r0   r2   )r  r  r   r   r   r<   r;   r6   r   r   r=   r  H  s   
r  sleep_opc           	      C   r   )zTODO: add doc.

  Args:
    sleep_seconds: A `Tensor` of type `int32`.
    name: A name for the operation (optional).

  Returns:
    The created Operation.
  SleepOpNr   r   )r  r   )r   r   r   r   r   r   r   r   r    r!   r"   _dispatcher_for_sleep_opr$   sleep_op_eager_fallbackr&   r'   r(   r)   r   r  r*   r+   r,   r-   r.   )	r  r   r4   r5   r6   r7   r8   r9   r:   r   r   r=   r  V  r   zraw_ops.SleepOpc                 C   rF  )Ns   SleepOpr   rB   r  )r  r   r   r<   r;   r6   r   r   r=   r    s   r  string_list_attrc           
      C   s  t j pt  }|j}|jrz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| ||fd}|turN|W S t| |||dW S  tjy`   Y q ttfy   ttdt| ||d}|tjjur~| Y S  w t| ||fd}|tur|S t| ttfstd|  d	d
 | D } t|d}ztjd| ||d\}}}}	W |S  ttfy   ttdt| ||d}|tjjur| Y S  w )zTODO: add doc.

  Args:
    a: A list of `strings`.
    b: A `string`.
    name: A name for the operation (optional).

  Returns:
    The created Operation.
  StringListAttrr   r   Nr  r   r   @Expected list for 'a' argument to 'string_list_attr' Op, not %r.c                 S   r_   r`   r   r   r   r   r=   re     rf   z$string_list_attr.<locals>.<listcomp>)r   r   r   r   r   r   r   r   r    r!   r"    _dispatcher_for_string_list_attrr$   string_list_attr_eager_fallbackr&   r'   r(   r)   r   r  r*   r+   r,   ri   rj   rk   r/   ru   r-   r.   r  r   r   r=   r    sv   

	zraw_ops.StringListAttrc                 C   sb   t | ttfstd|  dd | D } t|d}g }d| d|f}tjdd||||d}d }|S )	Nr  c                 S   r_   r`   r   r   r   r   r=   re     rf   z3string_list_attr_eager_fallback.<locals>.<listcomp>r   r   s   StringListAttrr   rB   )ri   rj   rk   r'   r/   ru   r   r  r   r   r=   r    s   
r  stub_resource_handle_op	containershared_namec                 C   s  t j pt  }|j}|jrz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| ||fd}|turN|W S t| |||dW S  tjy`   Y q ttfy   ttdt| ||d}|tjjur~| Y S  w t| ||fd}|tur|S | du rd} t| d} |du rd}t|d}ztjd| ||d\}}}}	W n  ttfy   ttdt| ||d}|tjjur| Y S  w |	dd }t rd|dd|df}
|j}td||
| |\}|S )	zTODO: add doc.

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

  Returns:
    A `Tensor` of type `resource`.
  StubResourceHandleOpr  r  N)r  r  r   r   r   )r  r  r   r  )r   r   r   r   r   r   r   r   r    r!   r"   '_dispatcher_for_stub_resource_handle_opr$   &stub_resource_handle_op_eager_fallbackr&   r'   r(   r)   r   r   r*   r+   r,   r/   ru   r-   r.   r0   r   r1   r2   )r  r  r   r4   r5   r6   r7   r8   r9   r:   r;   r<   r   r   r=   r     s   



	zraw_ops.StubResourceHandleOpc                 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 )Nr  r  r  s   StubResourceHandleOprA   rB   r  )r/   ru   r   r0   r2   )r  r  r   r   r<   r;   r6   r   r   r=   r  C  s"   
r  TV_TestAttr_T	test_attrc                 C   rs  )zTODO: add doc.

  Args:
    T: A `tf.DType` from: `tf.float32, tf.float64`.
    name: A name for the operation (optional).

  Returns:
    A `Tensor` of type `T`.
  TestAttrr   Nr  r   r  )r   r   r   r   r   r   r   r   r    r!   r"   _dispatcher_for_test_attrr$   test_attr_eager_fallbackr&   r'   r(   r)   r   r  r*   r+   r,   r/   r   r-   r.   r0   r   r1   r2   r  r   r   r=   r  W  rx  zraw_ops.TestAttrc                 C   ry  )Nr   s   TestAttrrA   rB   r  rz  r  r   r   r=   r
    r  r
  TestStringOutputtest_string_outputc                 C   rR  )rS  r  Nr   r   r  )r   r   r   r   r   r   _TestStringOutputOutputr   r   r   r    r!   r"   "_dispatcher_for_test_string_outputr$   !test_string_output_eager_fallbackr&   r'   r(   r)   r   r  r*   r+   r,   r-   r.   r/   r0   r1   r2   r  r   r   r=   r    rX  zraw_ops.TestStringOutputc                 C   rY  )Ns   TestStringOutputr   rB   r  )
r    rH  r   r,  r/   r   r0   r2   r  r   r  r   r   r=   r    s   

r  two_float_inputsc           
      C   r  )zTODO: add doc.

  Args:
    a: A `Tensor` of type `float32`.
    b: A `Tensor` of type `float32`.
    name: A name for the operation (optional).

  Returns:
    The created Operation.
  TwoFloatInputsNr   r   r   )r   r   r   r   r   r   r   r   r    r!   r"    _dispatcher_for_two_float_inputsr$   two_float_inputs_eager_fallbackr&   r'   r(   r)   r   r  r*   r+   r,   r-   r.   r  r   r   r=   r    r  zraw_ops.TwoFloatInputsc                 C   F   t | tj} t |tj}| |g}d }tjdd||||d}d }|S )Ns   TwoFloatInputsr   rB   rG  r  r   r   r=   r  B  r  r  two_float_inputs_float_outputc                 C     t j pt  }|j}|jr~zt|d|| |}|W S  tjy2 } zt	|| W Y d}~nd}~w tj
y;   Y nw zt| ||fd}|turL|W S t| |||dW S  tjy^   Y q ttfy}   ttdt| ||d}|tjjur|| Y S  w t| ||fd}|tur|S ztjd| ||d\}}}}	W n  ttfy   ttdt| ||d}|tjjur| Y S  w |	dd }t rd}
|j}td||
| |\}|S )zTODO: add doc.

  Args:
    a: A `Tensor` of type `float32`.
    b: A `Tensor` of type `float32`.
    name: A name for the operation (optional).

  Returns:
    A `Tensor` of type `float32`.
  TwoFloatInputsFloatOutputNr   r   r   )r   r   r   r   r   r   r   r   r    r!   r"   -_dispatcher_for_two_float_inputs_float_outputr$   ,two_float_inputs_float_output_eager_fallbackr&   r'   r(   r)   r   r  r*   r+   r,   r-   r.   r/   r0   r1   r2   r   r   r   r=   r  M  v   


z!raw_ops.TwoFloatInputsFloatOutputc                 C   `   t | tj} t |tj}| |g}d }tjdd||||d}t r+td||| |\}|S )Ns   TwoFloatInputsFloatOutputrA   rB   r  r    rH  r   r,  r/   r   r0   r2   r  r   r   r=   r       r  two_float_inputs_int_outputc                 C   r  )zTODO: add doc.

  Args:
    a: A `Tensor` of type `float32`.
    b: A `Tensor` of type `float32`.
    name: A name for the operation (optional).

  Returns:
    A `Tensor` of type `int32`.
  TwoFloatInputsIntOutputNr   r   r   )r   r   r   r   r   r   r   r   r    r!   r"   +_dispatcher_for_two_float_inputs_int_outputr$   *two_float_inputs_int_output_eager_fallbackr&   r'   r(   r)   r   r  r*   r+   r,   r-   r.   r/   r0   r1   r2   r   r   r   r=   r    r  zraw_ops.TwoFloatInputsIntOutputc                 C   r  )Ns   TwoFloatInputsIntOutputrA   rB   r  r  r  r   r   r=   r!    r  r!  TwoFloatOutputstwo_float_outputsc           
   
   C   r<  )zTODO: add doc.

  Args:
    name: A name for the operation (optional).

  Returns:
    A tuple of `Tensor` objects (a, b).

    a: A `Tensor` of type `float32`.
    b: A `Tensor` of type `float32`.
  r"  Nr   r   r   )r   r   r   r   r   r   _TwoFloatOutputsOutputr   r   r   r    r!   r"   !_dispatcher_for_two_float_outputsr$    two_float_outputs_eager_fallbackr&   r'   r(   r)   r   r#  r*   r+   r,   r-   r.   r/   r0   r1   r2   r3   r   r   r=   r#    rS  zraw_ops.TwoFloatOutputsc                 C   r@  )Ns   TwoFloatOutputsr   rB   r"  )r/   r   r0   r2   r$  r   rE   r   r   r=   r&  C   rA  r&  two_int_inputsc           
      C   r  )zTODO: add doc.

  Args:
    a: A `Tensor` of type `int32`.
    b: A `Tensor` of type `int32`.
    name: A name for the operation (optional).

  Returns:
    The created Operation.
  TwoIntInputsNr   r   r   )r   r   r   r   r   r   r   r   r    r!   r"   _dispatcher_for_two_int_inputsr$   two_int_inputs_eager_fallbackr&   r'   r(   r)   r   r'  r*   r+   r,   r-   r.   r  r   r   r=   r'  O   r  zraw_ops.TwoIntInputsc                 C   r  )Ns   TwoIntInputsr   rB   r  r  r   r   r=   r*     r  r*  TwoIntOutputstwo_int_outputsc           
   
   C   r<  )zTODO: add doc.

  Args:
    name: A name for the operation (optional).

  Returns:
    A tuple of `Tensor` objects (a, b).

    a: A `Tensor` of type `int32`.
    b: A `Tensor` of type `int32`.
  r+  Nr   r   r   )r   r   r   r   r   r   _TwoIntOutputsOutputr   r   r   r    r!   r"   _dispatcher_for_two_int_outputsr$   two_int_outputs_eager_fallbackr&   r'   r(   r)   r   r,  r*   r+   r,   r-   r.   r/   r0   r1   r2   r3   r   r   r=   r,     rS  zraw_ops.TwoIntOutputsc                 C   r@  )Ns   TwoIntOutputsr   rB   r+  )r/   r   r0   r2   r-  r   rE   r   r   r=   r/     rA  r/  TV_TwoRefsIn_Ttwo_refs_inc           	      C   r  )zTODO: add doc.

  Args:
    a: A mutable `Tensor`.
    b: A mutable `Tensor`. Must have the same type as `a`.
    name: A name for the operation (optional).

  Returns:
    The created Operation.
  Btwo_refs_in op does not support eager execution. Arg 'b' is a ref.N	TwoRefsInr   r   )r   r   r   r   r  _dispatcher_for_two_refs_inr$   r-   r.   r'   r(   r)   r   r1  r*   r+   r,   r  r   r   r=   r1     r  zraw_ops.TwoRefsInc                 C   r  )Nr2  r  r  r   r   r=   two_refs_in_eager_fallback!  r  r5  	type_listc           	      C   r   )zTODO: add doc.

  Args:
    a: A list of `Tensor` objects.
    name: A name for the operation (optional).

  Returns:
    The created Operation.
  TypeListNr   r   rK   )r   r   r   r   r   r   r   r   r    r!   r"   _dispatcher_for_type_listr$   type_list_eager_fallbackr&   r'   r(   r)   r   r6  r*   r+   r,   r-   r.   rO   r   r   r=   r6  !  r   zraw_ops.TypeListc                 C   >   t | |\}} t| }d|f}t jdd||||d}d }|S )Nr   s   TypeListr   rB   r/   Zconvert_to_mixed_eager_tensorsrj   r   r   r   r   r=   r9  Y!     
r9  type_list_restrictc           	      C   r   )zTODO: add doc.

  Args:
    a: A list of `Tensor` objects with types from: `string`, `bool`.
    name: A name for the operation (optional).

  Returns:
    The created Operation.
  TypeListRestrictNr   r   rK   )r   r   r   r   r   r   r   r   r    r!   r"   "_dispatcher_for_type_list_restrictr$   !type_list_restrict_eager_fallbackr&   r'   r(   r)   r   r=  r*   r+   r,   r-   r.   rO   r   r   r=   r=  c!  r   zraw_ops.TypeListRestrictc                 C   r:  )Nr   s   TypeListRestrictr   rB   r;  r   r   r   r=   r@  !  r<  r@  type_list_twicec           
      C   r  )zTODO: add doc.

  Args:
    a: A list of `Tensor` objects.
    b: A list of `Tensor` objects. Must have the same type as `a`.
    name: A name for the operation (optional).

  Returns:
    The created Operation.
  TypeListTwiceNr   r   r   )r   r   r   r   r   r   r   r   r    r!   r"   _dispatcher_for_type_list_twicer$   type_list_twice_eager_fallbackr&   r'   r(   r)   r   rA  r*   r+   r,   r-   r.   r  r   r   r=   rA  !  r  zraw_ops.TypeListTwicec                 C   sN   t | |f|\}\} }t| t| }d|f}t jdd||||d}d }|S )Nr   s   TypeListTwicer   rB   )r/   Zargs_to_mixed_eager_tensorsrj   r   )r   r   r   r   r   r<   r;   r6   r   r   r=   rD  !  s   
rD  
TV_Unary_Tunaryc                 C   r   )r   UnaryNr   r   rK   r   )r   r   r   r   r   r   r   r   r    r!   r"   _dispatcher_for_unaryr$   unary_eager_fallbackr&   r'   r(   r)   r   rF  r*   r+   r,   r-   r.   r/   r0   r   r1   r2   r   r   r   r=   rF  !  r   zraw_ops.Unaryc                 C   r   )Nr   s   UnaryrA   rB   rG  r   r   r   r   r=   rI  9"  r   rI  )N)rq   N)rA   N)r  N)r  N)r  r  N(  __doc__collectionsZtensorflow.pythonr   Ztensorflow.python.eagerr   r   r   r   r   r/   Ztensorflow.python.frameworkr   r   Ztensorflow.security.fuzzing.pyr   Z_atypesr   Z_op_def_registryr	   r    r
   r-   Z"tensorflow.python.util.deprecationr   Ztensorflow.python.utilr   r)   Z tensorflow.python.util.tf_exportr   typingr   r   Zadd_fallback_dispatch_listZadd_type_based_api_dispatcherZTensorFuzzingAnnotationZFloat32r   Z	to_raw_opr   Z_tf_type_based_dispatcherZDispatchr#   r%   intrG   rI   rL   rM   rD  rU   rV   rW   rX   r[   r]   rg   rh   strrp   rr   rs   rt   rw   rx   r}   r~   r   r   r   r   r   r   r   r   floatr   r   r   r   r   r   r   r   r   r   r   r   ZBFloat16ZBoolZ
Complex128Z	Complex64ZFloat16ZFloat64ZHalfZInt16ZInt32ZInt64ZInt8ZQInt16ZQInt32ZQInt8ZQUInt16ZQUInt8ResourceStringZUInt16ZUInt32ZUInt64ZUInt8ZVariantr   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   
namedtupler   r   r   r   r   r   r   r   r   r   r   r   r,  r  r  r  r*  r+  r-  r/  r0  r1  r3  r4  r6  r7  r8  r=  r;  r9  r>  r?  rB  rC  rD  rE  rJ  rK  rL  rM  rP  rO  rN  rQ  rR  rX  rU  rT  rY  rZ  rb  ra  r`  rc  rd  rh  rg  rf  ri  rj  rk  rl  rp  rq  ru  rv  rx  ry  rz  r|  r}  r~  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r
  r  r  r  r  r  r  r  r  r  r  r  r  r  r!  r"  r(  r)  r*  r+  r,  r-  r.  r0  r1  r2  r3  r5  r8  r9  r?  r@  rA  rB  rC  rE  rF  rG  rI  rJ  rK  rL  rM  rN  rO  rU  rQ  rP  rV  rW  rZ  ZNone_r^  r_  rd  re  rf  rg  rh  rj  rk  rl  rm  rn  ro  rp  rq  rr  ru  rv  rw  r{  r|  r~  r  r  r  r  r  r  r  r  r  r  r  re  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r   r  r  r  r  r  r  r	  r
  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r   r!  r$  r#  r"  r%  r&  r'  r(  r)  r*  r-  r,  r+  r.  r/  r0  r1  r3  r4  r5  r6  r7  r8  r9  r=  r>  r?  r@  rA  rB  rC  rD  rE  rF  rG  rH  rI  r   r   r   r=   <module>   s    =7
7
;9=7
;7
=;h0E&7
7
;7
;h6
 =h2?(Ph(>hx <T =h*> D 6
 =A8D.8D.8D.6	: = =h0A& =$A$6
07&0>&$=A4?*&=&=4>*l*; B4>*Dl:E0:E0ll:E0*;  > @l*; l(@l.D*; (@
(B5	5	,C"5l
.?$BBl2>(l4A$l.?$l&2 (>(42 (l.($&&)&= 7
(6
(6
4>*(6
2>(2>(>lBB8(6
=2L(.?$
(B27(>?4>?4A27(
Al2 (6
6
7l
2>,