o
    ?ev(                     @   sP  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dej!ej"ej#ej$ej%ej&ej'ej(ej)ej*ej+ej,ej-ej.ej/ej0ej1ej2ej3ej4ej5ej6ej7ej8Z9d%de9de:de:de;de:de<dej=e9 fddZ>ede?e>Z@de9de:de:de;de:de<dej=e9 fddZAedej!ej"ej#ej$ej%ej&ej'ej(ej)ej*ej+ej,ej-ej.ej/ej0ej1ej2ej3ej4ej5ej6ej7ej8ZBd%dej=eB de:de:de;de:de<fd d!ZCed"e?eCZDdej=eB de:de:de;de:de<fd#d$ZEd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TV_Recv_tensor_typeFtensor_typetensor_namesend_devicesend_device_incarnationrecv_deviceclient_terminatedreturnc                 C   s  t j pt  }|j}|jr^zt|d|d| d|d|d|d|d|}	|	W S  tjy< }
 zt	|
| W Y d}
~
nd}
~
w tj
yE   Y nw zt| |||||||d	W S  tjy]   Y nw t| d} t|d}t|d}t|d}t|d}|du rd
}t|d}tjd| ||||||d\}}}}|dd }	t rd|dd|dd|dd|dd|dd|df}|j}td|||	 |	\}	|	S )a  Receives the named tensor from send_device on recv_device.

  Args:
    tensor_type: A `tf.DType`.
    tensor_name: A `string`. The name of the tensor to receive.
    send_device: A `string`. The name of the device sending the tensor.
    send_device_incarnation: An `int`. The current incarnation of send_device.
    recv_device: A `string`. The name of the device receiving the tensor.
    client_terminated: An optional `bool`. Defaults to `False`.
      If set to true, this indicates that the node was added
      to the graph as a result of a client-side feed or fetch of Tensor data,
      in which case the corresponding send or recv is expected to be managed
      locally by the caller.
    name: A name for the operation (optional).

  Returns:
    A `Tensor` of type `tensor_type`.
  Recvr   r   r   r   r   r   N)r   r   r   r   r   r   namectxF)r   r   r   r   r   r   r   )_contextr   _thread_local_datais_eagerr   TFE_Py_FastPathExecute_core_NotOkStatusException_opsraise_from_not_ok_status_FallbackExceptionrecv_eager_fallback_SymbolicException_execute	make_typemake_strmake_int	make_bool_op_def_library_apply_op_helpermust_record_gradientZ_get_attr_typeZget_attrZ_get_attr_intZ_get_attr_boolinputsrecord_gradient)r   r   r   r   r   r   r   _ctxtld_resulte__op_outputs_attrs_inputs_flat r9   g/home/www/facesmatcher.com/pyenv/lib/python3.10/site-packages/tensorflow/python/ops/gen_sendrecv_ops.pyrecv   st   



r;   zraw_ops.Recvc                 C   s   t | d} t |d}t |d}t |d}t |d}|d u r$d}t |d}g }d| d|d|d|d|d|f}	t jdd	||	||d
}
t  rQt d||	|
 |
\}
|
S )Nr   r   r   r   r   Fr   s   Recv   r.   attrsr   r   r   )r&   r'   r(   r)   r*   r   r-   r/   )r   r   r   r   r   r   r   r   r8   r7   r2   r9   r9   r:   r$   d   s.   r$   	TV_Send_Ttensorc                 C   s(  t j pt  }|j}|jr]zt|d|| d|d|d|d|d|}	|	W S  tjy; }
 zt	|
| W Y d}
~
nd}
~
w tj
yD   Y nw zt| |||||||dW S  tjy\   Y nw t|d}t|d}t|d}t|d}|du r{d	}t|d}tjd| ||||||d
\}}}}|S )a  Sends the named tensor from send_device to recv_device.

  Args:
    tensor: A `Tensor`. The tensor to send.
    tensor_name: A `string`. The name of the tensor to send.
    send_device: A `string`. The name of the device sending the tensor.
    send_device_incarnation: An `int`. The current incarnation of send_device.
    recv_device: A `string`. The name of the device receiving the tensor.
    client_terminated: An optional `bool`. Defaults to `False`.
      If set to true, this indicates that the node was added
      to the graph as a result of a client-side feed or fetch of Tensor data,
      in which case the corresponding send or recv is expected to be managed
      locally by the caller.
    name: A name for the operation (optional).

  Returns:
    The created Operation.
  Sendr   r   r   r   r   N)r   r   r   r   r   r   r   F)r@   r   r   r   r   r   r   )r   r   r   r   r   r   r   r    r!   r"   r#   send_eager_fallbackr%   r&   r(   r)   r*   r+   r,   )r@   r   r   r   r   r   r   r0   r1   r2   r3   r4   r5   r6   r9   r9   r:   send}   sR   rC   zraw_ops.Sendc                 C   s   t |d}t |d}t |d}t |d}|d u rd}t |d}t | g|g \}\} | g}	d|d|d|d|d|d|f}
t jdd	|	|
||d
}d }|S )Nr   r   r   r   Fr   Ts   Sendr   r=   )r&   r(   r)   r*   Zargs_to_matching_eagerr   )r@   r   r   r   r   r   r   r   Z_attr_Tr8   r7   r2   r9   r9   r:   rB      s$   
rB   )FN)F__doc__collectionsZtensorflow.pythonr   Ztensorflow.python.eagerr   r   r   r   r   r&   Ztensorflow.python.frameworkr   Z_dtypesZtensorflow.security.fuzzing.pyr   Z_atypesr   Z_op_def_registryr	   r!   r
   r+   Z"tensorflow.python.util.deprecationr   Ztensorflow.python.utilr   	_dispatchZ tensorflow.python.util.tf_exportr   typingr   r   ZBFloat16ZBoolZ
Complex128Z	Complex64ZFloat16ZFloat32ZFloat64ZHalfZInt16ZInt32ZInt64ZInt8ZQInt16ZQInt32ZQInt8ZQUInt16ZQUInt8ResourceStringZUInt16ZUInt32ZUInt64ZUInt8ZVariantr   strintboolZTensorFuzzingAnnotationr;   Z	to_raw_opr   r$   r?   rC   rA   rB   r9   r9   r9   r:   <module>   s.    h.G,h*7,